package flag
import "k8s.io/kubernetes/pkg/util/flag"
Index ¶
- func InitFlags()
- func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
- type StringFlag
- func NewStringFlag(defaultVal string) StringFlag
- func (f *StringFlag) Default(value string)
- func (f StringFlag) Provided() bool
- func (f *StringFlag) Set(value string) error
- func (f StringFlag) String() string
- func (f *StringFlag) Type() string
- func (f StringFlag) Value() string
- type Tristate
Functions ¶
func InitFlags ¶
func InitFlags()
InitFlags normalizes and parses the command line flags
func WarnWordSepNormalizeFunc ¶
func WarnWordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WarnWordSepNormalizeFunc changes and warns for flags that contain "_" separators
func WordSepNormalizeFunc ¶
func WordSepNormalizeFunc(f *pflag.FlagSet, name string) pflag.NormalizedName
WordSepNormalizeFunc changes all flags that contain "_" separators
Types ¶
type StringFlag ¶
type StringFlag struct {
// contains filtered or unexported fields
}
StringFlag is a string flag compatible with flags and pflags that keeps track of whether it had a value supplied or not.
func NewStringFlag ¶
func NewStringFlag(defaultVal string) StringFlag
func (*StringFlag) Default ¶
func (f *StringFlag) Default(value string)
func (StringFlag) Provided ¶
func (f StringFlag) Provided() bool
func (*StringFlag) Set ¶
func (f *StringFlag) Set(value string) error
func (StringFlag) String ¶
func (f StringFlag) String() string
func (*StringFlag) Type ¶
func (f *StringFlag) Type() string
func (StringFlag) Value ¶
func (f StringFlag) Value() string
type Tristate ¶
type Tristate int
Tristate is a flag compatible with flags and pflags that keeps track of whether it had a value supplied or not.
func (*Tristate) Default ¶
func (Tristate) Provided ¶
func (*Tristate) Set ¶
func (Tristate) String ¶
func (*Tristate) Type ¶
func (Tristate) Value ¶
Source Files ¶
flags.go string_flag.go tristate.go
- Version
- v1.5.0-beta.2
- Published
- Nov 24, 2016
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 19 minutes ago –
Tools for package owners.