worker

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNfdWorker

func NewNfdWorker(args *Args) (nfdclient.NfdClient, error)

NewNfdWorker creates new NfdWorker instance.

Types

type Args

type Args struct {
	nfdclient.Args

	ConfigFile string
	Oneshot    bool
	Options    string

	Klog      map[string]*utils.KlogFlagVal
	Overrides ConfigOverrideArgs
}

Args are the command line arguments of NfdWorker.

type ConfigOverrideArgs

type ConfigOverrideArgs struct {
	NoPublish *bool

	// Deprecated
	LabelWhiteList *utils.RegexpVal
	SleepInterval  *time.Duration
	FeatureSources *utils.StringSliceVal
	LabelSources   *utils.StringSliceVal
}

ConfigOverrideArgs are args that override config file options

type Labels

type Labels map[string]string

Labels are a Kubernetes representation of discovered features.

type NFDConfig

type NFDConfig struct {
	Core    coreConfig
	Sources sourcesConfig
}

NFDConfig contains the configuration settings of NfdWorker.

Jump to

Keyboard shortcuts

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