worker

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigFileFlagName = "config-file"

Variables

View Source
var ConfigFile string

Functions

func AddFlagsTo

func AddFlagsTo(fs *pflag.FlagSet)

Types

type WorkerOptions

type WorkerOptions struct {
	GlobalOptions     *global.GlobalOptions         `yaml:"global"`
	KubeletOptions    *kubelet.KubeletOptions       `yaml:"kubelet"`
	KubeProxyOptions  *kubeproxy.KubeProxyOptions   `yaml:"kube-proxy"`
	NetmamagerOptions *netmanager.NetManagerOptions `yaml:"network-manager"`
}

func NewWorkerOptions

func NewWorkerOptions() *WorkerOptions

func (*WorkerOptions) ConfigHelpSection

func (opt *WorkerOptions) ConfigHelpSection() []*help.Section

add yaml format help tips

func (*WorkerOptions) HelpSections

func (opt *WorkerOptions) HelpSections() []*help.Section

add flags help tips

func (*WorkerOptions) LoadConfig

func (opt *WorkerOptions) LoadConfig() error

func (*WorkerOptions) PrintFlags

func (opt *WorkerOptions) PrintFlags(printFunc func(format string, a ...interface{}) error) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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