Versions in this module Expand all Collapse all v0 v0.24.0 Mar 25, 2022 Changes in this version + func ClusterCompletionFunc(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + func ContextCompletionFunc(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective) + func CreateApplyAnnotation(obj runtime.Object, codec runtime.Encoder) error + func CreateOrUpdateAnnotation(createAnnotation bool, obj runtime.Object, codec runtime.Encoder) error + func GetModifiedConfiguration(obj runtime.Object, annotate bool, codec runtime.Encoder) ([]byte, error) + func GetOriginalConfiguration(obj runtime.Object) ([]byte, error) + func HashObject(obj runtime.Object, codec runtime.Codec) (string, error) + func ListClustersInConfig(toComplete string) []string + func ListContextsInConfig(toComplete string) []string + func ListUsersInConfig(toComplete string) []string + func LookupContainerPortNumberByName(pod v1.Pod, name string) (int32, error) + func LookupContainerPortNumberByServicePort(svc v1.Service, pod v1.Pod, port int32) (int32, error) + func LookupServicePortNumberByName(svc v1.Service, name string) (int32, error) + func ParseFileSource(source string) (keyName, filePath string, err error) + func ParseLiteralSource(source string) (keyName, value string, err error) + func ParseRFC3339(s string, nowFn func() metav1.Time) (metav1.Time, error) + func PodResourceNameAndContainerCompletionFunc(f cmdutil.Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func ResourceNameCompletionFunc(f cmdutil.Factory, resourceType string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func ResourceTypeAndNameCompletionFunc(f cmdutil.Factory) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func SetFactoryForCompletion(f cmdutil.Factory) + func SpecifiedResourceTypeAndNameCompletionFunc(f cmdutil.Factory, allowedTypes []string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func SpecifiedResourceTypeAndNameNoRepeatCompletionFunc(f cmdutil.Factory, allowedTypes []string) func(*cobra.Command, []string, string) ([]string, cobra.ShellCompDirective) + func Umask(mask int) (int, error) — windows/amd64 + func Umask(mask int) (old int, err error) — darwin/amd64, js/wasm, linux/amd64 + func UserCompletionFunc(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)