nfdworker

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2019 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewNfdWorker

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

Create new NfdWorker instance.

Types

type Args

type Args struct {
	LabelWhiteList     string
	CaFile             string
	CertFile           string
	KeyFile            string
	ConfigFile         string
	NoPublish          bool
	Options            string
	Oneshot            bool
	Server             string
	ServerNameOverride string
	SleepInterval      time.Duration
	Sources            []string
}

Command line arguments

type Labels

type Labels map[string]string

Labels are a Kubernetes representation of discovered features.

type NFDConfig

type NFDConfig struct {
	Sources struct {
		Cpu    *cpu.NFDConfig    `json:"cpu,omitempty"`
		Kernel *kernel.NFDConfig `json:"kernel,omitempty"`
		Pci    *pci.NFDConfig    `json:"pci,omitempty"`
	} `json:"sources,omitempty"`
}

Global config

type NfdWorker

type NfdWorker interface {
	Run() error
}

Jump to

Keyboard shortcuts

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