Documentation
¶
Index ¶
- Constants
- func NewPlugin(sections []string) (plugin.PluginInterface, error)
- type SystemExtractor
- func (e SystemExtractor) Create(plugin.PluginOptions) error
- func (e SystemExtractor) Description() string
- func (e SystemExtractor) Extract(allowFail bool) (plugin.PluginData, error)
- func (e SystemExtractor) IsCreator() bool
- func (e SystemExtractor) IsExtractor() bool
- func (e SystemExtractor) Name() string
- func (e SystemExtractor) Sections() []string
- func (e SystemExtractor) Validate() bool
Constants ¶
View Source
const ( ExtractorName = "system" ExtractorDescription = "generic system extractor" // Just cores, etc. CPUSection = "cpu" ProcessorSection = "processor" ArchSection = "arch" OsSection = "os" MemorySection = "memory" )
View Source
const (
CpuInfoFile = "/proc/cpuinfo"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SystemExtractor ¶
type SystemExtractor struct {
// contains filtered or unexported fields
}
func (SystemExtractor) Create ¶
func (e SystemExtractor) Create(plugin.PluginOptions) error
func (SystemExtractor) Description ¶
func (e SystemExtractor) Description() string
func (SystemExtractor) Extract ¶
func (e SystemExtractor) Extract(allowFail bool) (plugin.PluginData, error)
Extract returns system metadata, for a set of named sections
func (SystemExtractor) IsCreator ¶
func (e SystemExtractor) IsCreator() bool
func (SystemExtractor) IsExtractor ¶
func (e SystemExtractor) IsExtractor() bool
func (SystemExtractor) Name ¶
func (e SystemExtractor) Name() string
func (SystemExtractor) Sections ¶
func (e SystemExtractor) Sections() []string
func (SystemExtractor) Validate ¶
func (e SystemExtractor) Validate() bool
Validate ensures that the sections provided are in the list we know
Click to show internal directories.
Click to hide internal directories.