args

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildConfig

func BuildConfig(opt ClientOptions) (*rest.Config, error)

BuildConfig builds kube rest config with the given options.

Types

type Argument

type Argument struct {
	CheckInterval     time.Duration
	KubeletConf       string
	DevicePath        string
	CpuMngstate       string
	KubeClientOptions ClientOptions
}

func NewArgument

func NewArgument() *Argument

func (*Argument) AddFlags

func (args *Argument) AddFlags(fs *pflag.FlagSet)

type ClientOptions

type ClientOptions struct {
	Master     string
	KubeConfig string
}

ClientOptions used to build kube rest config.

Jump to

Keyboard shortcuts

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