flagopts

package
v2.21.12 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 8 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.String) flag.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.

Jump to

Keyboard shortcuts

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