package
0.33.0-alpha.2
Repository: https://github.com/kubernetes/kubectl.git
Documentation: pkg.go.dev

# Functions

ClusterCompletionFunc is a completion function that completes as a first argument the cluster names that match the toComplete prefix.
CompGetContainers gets the list of containers of the specified pod which begin with `toComplete`.
CompGetFromTemplate executes a Get operation using the specified template and args and returns the results which begin with `toComplete`.
CompGetPodContainerPorts retrieves the list of ports for containers within the specified pod that start with `toComplete`.
CompGetResource gets the list of the resource specified which begin with `toComplete`.
CompGetServicePorts gets the list of ports of the specified service which begin with `toComplete`.
ContainerCompletionFunc Returns a completion function that completes the containers within the pod specified by the first argument.
ContextCompletionFunc is a completion function that completes as a first argument the context names that match the toComplete prefix.
ListClustersInConfig returns a list of cluster names which begin with `toComplete`.
ListContextsInConfig returns a list of context names which begin with `toComplete`.
ListUsersInConfig returns a list of user names which begin with `toComplete`.
PodResourceNameAndContainerCompletionFunc Returns a completion function that completes, as a first argument: 1- pod names that match the toComplete prefix 2- resource types containing pods which match the toComplete prefix and as a second argument the containers within the specified pod.
PodResourceNameCompletionFunc Returns a completion function that completes: 1- pod names that match the toComplete prefix 2- resource types containing pods which match the toComplete prefix.
ResourceAndPortCompletionFunc Returns a completion function that completes, as a first argument: 1- resources that match the toComplete prefix 2- the ports of the specific resource.
ResourceNameCompletionFunc Returns a completion function that completes as a first argument the resource names specified by the resourceType parameter, and which match the toComplete prefix.
ResourceTypeAndNameCompletionFunc Returns a completion function that completes resource types and resource names that match the toComplete prefix.
SetFactoryForCompletion Store the factory which is needed by the completion functions.
SpecifiedResourceTypeAndNameCompletionFunc Returns a completion function that completes resource types limited to the specified allowedTypes, and resource names that match the toComplete prefix.
SpecifiedResourceTypeAndNameNoRepeatCompletionFunc Returns a completion function that completes resource types limited to the specified allowedTypes, and resource names that match the toComplete prefix.
UserCompletionFunc is a completion function that completes as a first argument the user names that match the toComplete prefix.