flag

package
v1.31.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2024 License: Apache-2.0 Imports: 13 Imported by: 477

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IPPortVar added in v1.12.0

type IPPortVar struct {
	Val *string
}

IPPortVar is used for validating a command line option that represents an IP and a port. It implements the pflag.Value interface

func (*IPPortVar) Set added in v1.12.0

func (v *IPPortVar) Set(s string) error

Set sets the flag value

func (*IPPortVar) String added in v1.12.0

func (v *IPPortVar) String() string

String returns the flag value

func (*IPPortVar) Type added in v1.12.0

func (v *IPPortVar) Type() string

Type gets the flag type

type IPVar added in v1.12.0

type IPVar struct {
	Val *string
}

IPVar is used for validating a command line option that represents an IP. It implements the pflag.Value interface

func (*IPVar) Set added in v1.12.0

func (v *IPVar) Set(s string) error

Set sets the flag value

func (*IPVar) String added in v1.12.0

func (v *IPVar) String() string

String returns the flag value

func (*IPVar) Type added in v1.12.0

func (v *IPVar) Type() string

Type gets the flag type

type PortRangeVar added in v1.12.0

type PortRangeVar struct {
	Val *string
}

PortRangeVar is used for validating a command line option that represents a port range. It implements the pflag.Value interface

func (PortRangeVar) Set added in v1.12.0

func (v PortRangeVar) Set(s string) error

Set sets the flag value

func (PortRangeVar) String added in v1.12.0

func (v PortRangeVar) String() string

String returns the flag value

func (PortRangeVar) Type added in v1.12.0

func (v PortRangeVar) Type() string

Type gets the flag type

type RegisterWithTaintsVar added in v1.23.0

type RegisterWithTaintsVar struct {
	Value *[]v1.Taint
}

RegisterWithTaintsVar is used for validating a command line option that represents a register with taints. It implements the pflag.Value interface

func (RegisterWithTaintsVar) Set added in v1.23.0

Set sets the flag value

func (RegisterWithTaintsVar) String added in v1.23.0

func (t RegisterWithTaintsVar) String() string

String returns the flag value

func (RegisterWithTaintsVar) Type added in v1.23.0

func (t RegisterWithTaintsVar) Type() string

Type gets the flag type

type ReservedMemoryVar added in v1.21.0

type ReservedMemoryVar struct {
	Value *[]kubeletconfig.MemoryReservation
	// contains filtered or unexported fields
}

ReservedMemoryVar is used for validating a command line option that represents a reserved memory. It implements the pflag.Value interface

func (*ReservedMemoryVar) Set added in v1.21.0

func (v *ReservedMemoryVar) Set(s string) error

Set sets the flag value

func (*ReservedMemoryVar) String added in v1.21.0

func (v *ReservedMemoryVar) String() string

String returns the flag value

func (*ReservedMemoryVar) Type added in v1.21.0

func (v *ReservedMemoryVar) Type() string

Type gets the flag type

Jump to

Keyboard shortcuts

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