kubectl

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollectCommandlineOptions

func CollectCommandlineOptions(args []string, info *SubcommandInfo)

Types

type FormatOption

type FormatOption int
const (
	None FormatOption = iota
	Wide
	Json
	Yaml
)

type Subcommand

type Subcommand int
const (
	Create Subcommand = iota + 1
	Expose
	Run
	Set
	Explain
	Get
	Edit
	Delete
	Rollout
	Scale
	Autoscale
	Certificate
	ClusterInfo
	Top
	Cordon
	Uncordon
	Drain
	Taint
	Describe
	Logs
	Attach
	Exec
	PortForward
	Proxy
	Cp
	Auth
	Diff
	Apply
	Patch
	Replace
	Wait
	Convert
	Kustomize
	Label
	Annotate
	Completion
	APIResources
	APIVersions
	Config
	Plugin
	Version
	Options
	Ctx
	Ns
	Debug
)

func InspectSubcommand

func InspectSubcommand(command string) (Subcommand, bool)

type SubcommandInfo

type SubcommandInfo struct {
	Subcommand   Subcommand
	FormatOption FormatOption
	NoHeader     bool
	Watch        bool
	Help         bool
	Recursive    bool
	Short        bool

	IsKrew bool
}

func InspectSubcommandInfo

func InspectSubcommandInfo(args []string) (*SubcommandInfo, bool)

TODO: return shouldColorize = false when the given args is for plugin

Jump to

Keyboard shortcuts

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