command

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultNamespace = "configuredDefault"

Variables

This section is empty.

Functions

func CheckFlag added in v0.30.0

func CheckFlag(t *testing.T, command *cobra.Command, flagName string) bool

func FailingClientConfig added in v0.30.0

func FailingClientConfig(err error) clientcmd.ClientConfig

func HasLeafCommand added in v0.30.0

func HasLeafCommand(command *cobra.Command, subcommandName string) bool

func ParseURI added in v0.30.0

func ParseURI(t *testing.T, uri string) apis.URL

func RegularClientConfig added in v0.30.0

func RegularClientConfig() clientcmd.ClientConfig

Types

type FakeClientConfig

type FakeClientConfig struct {
	DefaultNamespaceProvider func() (string, error)
}

func (FakeClientConfig) ClientConfig

func (f FakeClientConfig) ClientConfig() (*rest.Config, error)

func (FakeClientConfig) ConfigAccess

func (f FakeClientConfig) ConfigAccess() clientcmd.ConfigAccess

func (FakeClientConfig) Namespace

func (f FakeClientConfig) Namespace() (string, bool, error)

func (FakeClientConfig) RawConfig

func (f FakeClientConfig) RawConfig() (clientcmdapi.Config, error)

type GenericOptions added in v0.30.0

type GenericOptions struct {
	Namespace     string
	Name          string
	AllNamespaces bool // used in list commands

}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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