options

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FlagMasterConfigName        = "master-config"
	FlagNodeConfigName          = "node-config"
	FlagClusterContextName      = "cluster-context"
	FlagLevelName               = "diaglevel"
	FlagIsHostName              = "host"
	FlagImageTemplateName       = "images"
	FlagLatestImageName         = "latest-images"
	FlagPreventModificationName = "prevent-modification"
	FlagNetworkDiagLogDir       = "network-logdir"
)

Constants for names of flags on the command (if not k8s flags).

Variables

This section is empty.

Functions

func BindLoggerOptionFlags

func BindLoggerOptionFlags(cmdFlags *pflag.FlagSet, loggerOptions *log.LoggerOptions, flags LoggerOptionFlags)

BindLoggerOptionFlags binds flags to LoggerOptionFlags.

Types

type FlagInfo

type FlagInfo kclientcmd.FlagInfo

FlagInfos serve as a customizable intermediary between the command flags and the options object they feed into. This enables reuse of the flags and options with tweaked definitions in different contexts if necessary. The kube type is reused to add binding methods.

func (FlagInfo) BindBoolFlag

func (i FlagInfo) BindBoolFlag(flags *pflag.FlagSet, target *bool)

kube method

func (FlagInfo) BindIntFlag

func (i FlagInfo) BindIntFlag(flags *pflag.FlagSet, target *int)

BindIntFlag binds a flag that expects an integer value.

func (FlagInfo) BindListFlag

func (i FlagInfo) BindListFlag(flags *pflag.FlagSet, target *[]string)

BindListFlag binds a flag that expects a kube list value. Note that if the target comes pre-populated, that list is not erased; anything the user puts in the flag is added on. This is probably a bug in k8s impl of StringList.

func (FlagInfo) BindStringFlag

func (i FlagInfo) BindStringFlag(flags *pflag.FlagSet, target *string)

kube method

type LoggerOptionFlags

type LoggerOptionFlags struct {
	Level FlagInfo
}

LoggerOptionFlags enable the user to specify how they want output.

func RecommendedLoggerOptionFlags

func RecommendedLoggerOptionFlags() LoggerOptionFlags

RecommendedLoggerOptionFlags provides default overrideable Logger flag specifications to be bound to options.

Jump to

Keyboard shortcuts

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