package
0.99.0-nabarun.1
Repository: https://github.com/palnabarun/kubectl.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.
NewCmdConfigDeleteUser returns a Command instance for 'config delete-user' 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.
NewCmdConfigGetUsers creates a command object for the "get-users" action, which lists all users defined in the 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.
NewDeleteUserOptions creates the options for the command.
NewGetUsersOptions creates the options for the command.
RunCurrentContext performs the execution of 'config current-context' sub command.
# Structs
CurrentContextOptions holds the command-line options for 'config current-context' sub command.
DeleteUserOptions holds the data needed to run the command.
GetContextsOptions contains the assignable options from the args.
GetUsersOptions holds the data needed to run the command.
RenameContextOptions contains the options for running the rename-context cli command.
ViewOptions holds the command-line options for 'config view' sub command.