nfdworker

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 32 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	CaFile             string
	CertFile           string
	KeyFile            string
	ConfigFile         string
	Options            string
	Oneshot            bool
	Server             string
	ServerNameOverride string

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

Command line arguments

type ConfigOverrideArgs added in v0.8.0

type ConfigOverrideArgs struct {
	NoPublish *bool

	// Deprecated
	LabelWhiteList *utils.RegexpVal
	SleepInterval  *time.Duration
	Sources        *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
}

Global config

type NfdWorker

type NfdWorker interface {
	Run() error
	Stop()
}

func NewNfdWorker

func NewNfdWorker(args *Args) (NfdWorker, error)

Create new NfdWorker instance.

Jump to

Keyboard shortcuts

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