flagopts

package
v2.20.16 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 StringArray

type StringArray []string

StringArray is an implementation flag.Value for parsing comma separated flags.

func (*StringArray) Set

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

Set is flag.Value implementation method.

func (StringArray) String

func (s StringArray) 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