Versions in this module Expand all Collapse all v0 v0.22.3 Sep 17, 2021 Changes in this version + const ApplyAnnotationsFlag + const DefaultChunkSize + const DefaultErrorExitCode + var ErrExit = fmt.Errorf("exit") + func AddApplyAnnotationFlags(cmd *cobra.Command) + func AddApplyAnnotationVarFlags(cmd *cobra.Command, applyAnnotation *bool) + func AddChunkSizeFlag(cmd *cobra.Command, value *int64) + func AddContainerVarFlags(cmd *cobra.Command, p *string, containerName string) + func AddDryRunFlag(cmd *cobra.Command) + func AddFieldManagerFlagVar(cmd *cobra.Command, p *string, defaultFieldManager string) + func AddFilenameOptionFlags(cmd *cobra.Command, options *resource.FilenameOptions, usage string) + func AddFromEnvFile(filePath string, addTo func(key, value string) error) error + func AddJsonFilenameFlag(flags *pflag.FlagSet, value *[]string, usage string) + func AddKustomizeFlag(flags *pflag.FlagSet, value *string) + func AddPodRunningTimeoutFlag(cmd *cobra.Command, defaultTimeout time.Duration) + func AddServerSideApplyFlags(cmd *cobra.Command) + func AddSourceToErr(verb string, source string, err error) error + func AddValidateFlags(cmd *cobra.Command) + func AddValidateOptionFlags(cmd *cobra.Command, options *ValidateOptions) + func BehaviorOnFatal(f func(string, int)) + func CheckDiffErr(err error) + func CheckErr(err error) + func DefaultBehaviorOnFatal() + func DefaultSubCommandRun(out io.Writer) func(c *cobra.Command, args []string) + func DumpReaderToFile(reader io.Reader, filename string) error + func GetFieldManagerFlag(cmd *cobra.Command) string + func GetFlagBool(cmd *cobra.Command, flag string) bool + func GetFlagDuration(cmd *cobra.Command, flag string) time.Duration + func GetFlagInt(cmd *cobra.Command, flag string) int + func GetFlagInt32(cmd *cobra.Command, flag string) int32 + func GetFlagInt64(cmd *cobra.Command, flag string) int64 + func GetFlagString(cmd *cobra.Command, flag string) string + func GetFlagStringArray(cmd *cobra.Command, flag string) []string + func GetFlagStringSlice(cmd *cobra.Command, flag string) []string + func GetForceConflictsFlag(cmd *cobra.Command) bool + func GetPodRunningTimeoutFlag(cmd *cobra.Command) (time.Duration, error) + func GetResourcesAndPairs(args []string, pairType string) (resources []string, pairArgs []string, err error) + func GetServerSideApplyFlag(cmd *cobra.Command) bool + func IsFilenameSliceEmpty(filenames []string, directory string) bool + func IsSiblingCommandExists(cmd *cobra.Command, targetCmdName string) bool + func ManualStrip(file []byte) []byte + func Merge(codec runtime.Codec, dst runtime.Object, fragment string) (runtime.Object, error) + func MultilineError(prefix string, err error) string + func MultipleErrors(prefix string, errs []error) string + func ParsePairs(pairArgs []string, pairType string, supportRemove bool) (newPairs map[string]string, removePairs []string, err error) + func PrintErrorWithCauses(err error, errOut io.Writer) bool + func PrintFlagsWithDryRunStrategy(printFlags *genericclioptions.PrintFlags, dryRunStrategy DryRunStrategy) *genericclioptions.PrintFlags + func RequireNoArguments(c *cobra.Command, args []string) + func StandardErrorMessage(err error) (string, bool) + func StripComments(file []byte) []byte + func SuggestAPIResources(parent string) string + func UsageErrorf(cmd *cobra.Command, format string, args ...interface{}) error + func Warning(cmdErr io.Writer, newGeneratorName, oldGeneratorName string) + type DryRunStrategy int + const DryRunClient + const DryRunNone + const DryRunServer + func GetDryRunStrategy(cmd *cobra.Command) (DryRunStrategy, error) + type Factory interface + ClientForMapping func(mapping *meta.RESTMapping) (resource.RESTClient, error) + DynamicClient func() (dynamic.Interface, error) + KubernetesClientSet func() (*kubernetes.Clientset, error) + NewBuilder func() *resource.Builder + OpenAPIGetter func() discovery.OpenAPISchemaInterface + OpenAPISchema func() (openapi.Resources, error) + RESTClient func() (*restclient.RESTClient, error) + UnstructuredClientForMapping func(mapping *meta.RESTMapping) (resource.RESTClient, error) + Validator func(validate bool) (validation.Schema, error) + func NewFactory(clientGetter genericclioptions.RESTClientGetter) Factory + type MatchVersionFlags struct + Delegate genericclioptions.RESTClientGetter + RequireMatchedServerVersion bool + func NewMatchVersionFlags(delegate genericclioptions.RESTClientGetter) *MatchVersionFlags + func (f *MatchVersionFlags) AddFlags(flags *pflag.FlagSet) + func (f *MatchVersionFlags) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) + func (f *MatchVersionFlags) ToRESTConfig() (*rest.Config, error) + func (f *MatchVersionFlags) ToRESTMapper() (meta.RESTMapper, error) + func (f *MatchVersionFlags) ToRawKubeConfigLoader() clientcmd.ClientConfig + type ScaleClientFunc func(genericclioptions.RESTClientGetter) (scale.ScalesGetter, error) + var ScaleClientFn ScaleClientFunc = scaleClient + type ValidateOptions struct + EnableValidation bool