package
1.14.0-alpha.3
Repository: https://github.com/draveness/kubernetes.git
Documentation: pkg.go.dev
# Functions
NewCmdConfig creates a command object for the "config" action, and adds all child commands to it.
NewCmdConfigCurrentContext returns a Command instance for 'config current-context' sub command.
NewCmdConfigDeleteCluster returns a Command instance for 'config delete-cluster' sub command.
NewCmdConfigDeleteContext returns a Command instance for 'config delete-context' sub command.
NewCmdConfigGetClusters creates a command object for the "get-clusters" action, which lists all clusters defined in the kubeconfig.
NewCmdConfigGetContexts creates a command object for the "get-contexts" action, which retrieves one or more contexts from a kubeconfig.
NewCmdConfigRenameContext creates a command object for the "rename-context" action.
NewCmdConfigSet returns a Command instance for 'config set' sub command.
NewCmdConfigSetAuthInfo returns an Command option instance for 'config set-credentials' sub command.
NewCmdConfigSetCluster returns a Command instance for 'config set-cluster' sub command.
NewCmdConfigSetContext returns a Command instance for 'config set-context' sub command.
NewCmdConfigUnset returns a Command instance for 'config unset' sub command.
NewCmdConfigUseContext returns a Command instance for 'config use-context' sub command.
NewCmdConfigView returns a Command instance for 'config view' sub command.
RunCurrentContext performs the execution of 'config current-context' sub command.
# Structs
CurrentContextOptions holds the command-line options for 'config current-context' sub command.
GetContextsOptions contains the assignable options from the args.
RenameContextOptions contains the options for running the rename-context cli command.
ViewOptions holds the command-line options for 'config view' sub command.