interfaces

package
v0.0.0-...-3566972 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector interface {
	GetName() string

	CheckSupported() error

	Collect() error

	GetData() map[string]DataValue
}

Collector defines interface for a collector

type DataProducer

type DataProducer interface {
	GetData() map[string]DataValue

	GetName() string
}

DataProducer defines an object producing data

type DataValue

type DataValue interface {
	GetLength() int64

	GetReader() (io.ReadCloser, error)
}

type Diagnoser

type Diagnoser interface {
	GetName() string

	Diagnose() error

	GetData() map[string]DataValue
}

Diagnoser defines interface for a diagnoser

type Exporter

type Exporter interface {
	Export(DataProducer) error
}

Exporter defines interface for an exporter

type FileSystemAccessor

type FileSystemAccessor interface {
	GetFileReader(filePath string) (io.ReadCloser, error)
	FileExists(filePath string) (bool, error)
	GetFileSize(filePath string) (int64, error)
	ListFiles(directoryPath string) ([]string, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL