nfd

package
v0.0.0-...-53c5c15 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

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

func NewPlugin

func NewPlugin(sections []string) (plugin.PluginInterface, error)

NewPlugin validates and returns a new kernel plugin

Types

type NFDExtractor

type NFDExtractor struct {
	// contains filtered or unexported fields
}

NFDExtractor is an extractor for node feature discovery

func (NFDExtractor) Create

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

Jump to

Keyboard shortcuts

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