cli

package
v0.0.0-...-6c8496d Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubeConfigFlag     = "kubeconfig"
	ContextFlag        = "context"
	NamespaceFlag      = "namespace"
	DubboNamespaceFlag = "dubbo-namespace"
	ChartFlag          = "charts"
)

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)
	DubboNamespace() 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

func (*RootFlags) DubboNamespace

func (r *RootFlags) DubboNamespace() string

func (*RootFlags) Namespace

func (r *RootFlags) Namespace() string

Jump to

Keyboard shortcuts

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