cli

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2025 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

View Source
const (
	KubeConfigFlag = "kubeconfig"
	ContextFlag    = "context"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context interface {
	CLIClient() (kube.CLIClient, error)
	CLIClientWithRevision(rev string) (kube.CLIClient, error)
	Namespace() string
}

func NewCLIContext

func NewCLIContext(rootFlags *RootFlags) Context

type RootFlags

type RootFlags struct {
	Context *string
	// contains filtered or unexported fields
}

func AddRootFlags

func AddRootFlags(flags *pflag.FlagSet) *RootFlags

Jump to

Keyboard shortcuts

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