flagopts

package
v2.25.3 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetFlag added in v2.21.0

func SetFlag(set sets.Set[string]) pflag.Value

SetFlag wraps a given set so it can be used as a CLI flag.

Types

type IPValue added in v2.16.3

type IPValue struct {
	IP net.IP
}

func (*IPValue) Set added in v2.16.3

func (i *IPValue) Set(s string) error

func (*IPValue) String added in v2.16.3

func (i *IPValue) String() string

type KubeconfigFlag

type KubeconfigFlag string

KubeconfigFlag flag, will detect possible defaults.

func NewKubeconfig

func NewKubeconfig() KubeconfigFlag

NewKubeconfig detect KUBECONFIG from ENV or default to $HOME/.kube/config.

func (*KubeconfigFlag) Set

func (s *KubeconfigFlag) Set(val string) error

Set is flag.Value implementation method.

func (KubeconfigFlag) String

func (s KubeconfigFlag) String() string

String is flag.Value implementation method.

type PProf added in v2.24.0

type PProf struct {
	ListenAddress string
}

func (*PProf) AddFlags added in v2.24.0

func (p *PProf) AddFlags(fs *flag.FlagSet)

Jump to

Keyboard shortcuts

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