Documentation
¶
Index ¶
- Constants
- func NewPlugin(sections []string) (plugin.PluginInterface, error)
- type NFDExtractor
- func (e NFDExtractor) Create(plugin.PluginOptions) error
- func (e NFDExtractor) Description() string
- func (e NFDExtractor) Extract(allowFail bool) (plugin.PluginData, error)
- func (e NFDExtractor) IsCreator() bool
- func (e NFDExtractor) IsExtractor() bool
- func (e NFDExtractor) Name() string
- func (e NFDExtractor) Sections() []string
- func (e NFDExtractor) Validate() bool
Constants ¶
View Source
const ( ExtractorName = "nfd" ExtractorDescription = "node feature discovery" // Each of these corresponds to a source CPUSection = "cpu" // TODO can we do a check that this is desired / enabled before running? KernelSection = "kernel" LocalSection = "local" MemorySection = "memory" NetworkSection = "network" PCISection = "pci" StorageSection = "storage" SystemSection = "system" USBSection = "usb" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NFDExtractor ¶
type NFDExtractor struct {
// contains filtered or unexported fields
}
NFDExtractor is an extractor for node feature discovery
func (NFDExtractor) Create ¶
func (e NFDExtractor) Create(plugin.PluginOptions) error
func (NFDExtractor) Description ¶
func (e NFDExtractor) Description() string
func (NFDExtractor) Extract ¶
func (e NFDExtractor) Extract(allowFail bool) (plugin.PluginData, error)
Extract returns system metadata, for a set of named sections
func (NFDExtractor) IsCreator ¶
func (e NFDExtractor) IsCreator() bool
func (NFDExtractor) IsExtractor ¶
func (e NFDExtractor) IsExtractor() bool
func (NFDExtractor) Name ¶
func (e NFDExtractor) Name() string
func (NFDExtractor) Sections ¶
func (e NFDExtractor) Sections() []string
func (NFDExtractor) Validate ¶
func (e NFDExtractor) Validate() bool
Validate ensures that the sections provided are in the list we know
Click to show internal directories.
Click to hide internal directories.