Versions in this module Expand all Collapse all v0 v0.28.202 Oct 19, 2023 v0.28.201 Oct 19, 2023 Changes in this version + const ChangeCauseAnnotation + var ErrEmptyConfig = clientcmd.NewEmptyConfigError(...) + func IsNoCompatiblePrinterError(err error) bool + func NewTestIOStreams() (genericiooptions.IOStreams, *bytes.Buffer, *bytes.Buffer, *bytes.Buffer) + func NewTestIOStreamsDiscard() genericiooptions.IOStreams + type ChangeCauseRecorder struct + func (r *ChangeCauseRecorder) MakeRecordMergePatch(obj runtime.Object) ([]byte, error) + func (r *ChangeCauseRecorder) Record(obj runtime.Object) error + type CommandHeaderRoundTripper struct + Delegate http.RoundTripper + Headers map[string]string + func (c *CommandHeaderRoundTripper) CancelRequest(req *http.Request) + func (c *CommandHeaderRoundTripper) ParseCommandHeaders(cmd *cobra.Command, args []string) + func (c *CommandHeaderRoundTripper) RoundTrip(req *http.Request) (*http.Response, error) + type ConfigFlags struct + APIServer *string + AuthInfoName *string + BearerToken *string + CAFile *string + CacheDir *string + CertFile *string + ClusterName *string + Context *string + DisableCompression *bool + Impersonate *string + ImpersonateGroup *[]string + ImpersonateUID *string + Insecure *bool + KeyFile *string + KubeConfig *string + Namespace *string + Password *string + TLSServerName *string + Timeout *string + Username *string + WrapConfigFn func(*rest.Config) *rest.Config + func NewConfigFlags(usePersistentConfig bool) *ConfigFlags + func (f *ConfigFlags) AddFlags(flags *pflag.FlagSet) + func (f *ConfigFlags) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) + func (f *ConfigFlags) ToRESTConfig() (*rest.Config, error) + func (f *ConfigFlags) ToRESTMapper() (meta.RESTMapper, error) + func (f *ConfigFlags) ToRawKubeConfigLoader() clientcmd.ClientConfig + func (f *ConfigFlags) WithDeprecatedPasswordFlag() *ConfigFlags + func (f *ConfigFlags) WithDiscoveryBurst(discoveryBurst int) *ConfigFlags + func (f *ConfigFlags) WithDiscoveryQPS(discoveryQPS float32) *ConfigFlags + func (f *ConfigFlags) WithWarningPrinter(ioStreams genericiooptions.IOStreams) *ConfigFlags + func (f *ConfigFlags) WithWrapConfigFn(wrapConfigFn func(*rest.Config) *rest.Config) *ConfigFlags + type FileNameFlags struct + Filenames *[]string + Kustomize *string + Recursive *bool + Usage string + func (o *FileNameFlags) AddFlags(flags *pflag.FlagSet) + func (o *FileNameFlags) ToOptions() resource.FilenameOptions + type GoTemplatePrintFlags struct + AllowMissingKeys *bool + TemplateArgument *string + func NewGoTemplatePrintFlags() *GoTemplatePrintFlags + func (f *GoTemplatePrintFlags) AddFlags(c *cobra.Command) + func (f *GoTemplatePrintFlags) AllowedFormats() []string + func (f *GoTemplatePrintFlags) ToPrinter(templateFormat string) (printers.ResourcePrinter, error) + type IOStreams = genericiooptions.IOStreams + type JSONPathPrintFlags struct + AllowMissingKeys *bool + TemplateArgument *string + func NewJSONPathPrintFlags(templateValue string, allowMissingKeys bool) *JSONPathPrintFlags + func (f *JSONPathPrintFlags) AddFlags(c *cobra.Command) + func (f *JSONPathPrintFlags) AllowedFormats() []string + func (f *JSONPathPrintFlags) ToPrinter(templateFormat string) (printers.ResourcePrinter, error) + type JSONYamlPrintFlags struct + ShowManagedFields bool + func NewJSONYamlPrintFlags() *JSONYamlPrintFlags + func (f *JSONYamlPrintFlags) AddFlags(c *cobra.Command) + func (f *JSONYamlPrintFlags) AllowedFormats() []string + func (f *JSONYamlPrintFlags) ToPrinter(outputFormat string) (printers.ResourcePrinter, error) + type KubeTemplatePrintFlags struct + AllowMissingKeys *bool + GoTemplatePrintFlags *GoTemplatePrintFlags + JSONPathPrintFlags *JSONPathPrintFlags + TemplateArgument *string + func NewKubeTemplatePrintFlags() *KubeTemplatePrintFlags + func (f *KubeTemplatePrintFlags) AddFlags(c *cobra.Command) + func (f *KubeTemplatePrintFlags) AllowedFormats() []string + func (f *KubeTemplatePrintFlags) ToPrinter(outputFormat string) (printers.ResourcePrinter, error) + type NamePrintFlags struct + Operation string + func NewNamePrintFlags(operation string) *NamePrintFlags + func (f *NamePrintFlags) AddFlags(c *cobra.Command) + func (f *NamePrintFlags) AllowedFormats() []string + func (f *NamePrintFlags) Complete(successTemplate string) error + func (f *NamePrintFlags) ToPrinter(outputFormat string) (printers.ResourcePrinter, error) + type NoCompatiblePrinterError struct + AllowedFormats []string + Options interface{} + OutputFormat *string + func (e NoCompatiblePrinterError) Error() string + type NoopRecorder struct + func (r NoopRecorder) MakeRecordMergePatch(obj runtime.Object) ([]byte, error) + func (r NoopRecorder) Record(obj runtime.Object) error + type PrintFlags struct + JSONYamlPrintFlags *JSONYamlPrintFlags + NamePrintFlags *NamePrintFlags + OutputFlagSpecified func() bool + OutputFormat *string + TemplatePrinterFlags *KubeTemplatePrintFlags + TypeSetterPrinter *printers.TypeSetterPrinter + func NewPrintFlags(operation string) *PrintFlags + func (f *PrintFlags) AddFlags(cmd *cobra.Command) + func (f *PrintFlags) AllowedFormats() []string + func (f *PrintFlags) Complete(successTemplate string) error + func (f *PrintFlags) ToPrinter() (printers.ResourcePrinter, error) + func (f *PrintFlags) WithDefaultOutput(output string) *PrintFlags + func (f *PrintFlags) WithTypeSetter(scheme *runtime.Scheme) *PrintFlags + type RESTClientGetter interface + ToDiscoveryClient func() (discovery.CachedDiscoveryInterface, error) + ToRESTConfig func() (*rest.Config, error) + ToRESTMapper func() (meta.RESTMapper, error) + ToRawKubeConfigLoader func() clientcmd.ClientConfig + type RecordFlags struct + Record *bool + func NewRecordFlags() *RecordFlags + func (f *RecordFlags) AddFlags(cmd *cobra.Command) + func (f *RecordFlags) Complete(cmd *cobra.Command) error + func (f *RecordFlags) CompleteWithChangeCause(cause string) error + func (f *RecordFlags) ToRecorder() (Recorder, error) + type Recorder interface + MakeRecordMergePatch func(runtime.Object) ([]byte, error) + Record func(runtime.Object) error + type ResourceBuilderFlags struct + All *bool + AllNamespaces *bool + FieldSelector *string + FileNameFlags *FileNameFlags + LabelSelector *string + Latest bool + Local *bool + Scheme *runtime.Scheme + StopOnFirstError bool + func NewResourceBuilderFlags() *ResourceBuilderFlags + func (o *ResourceBuilderFlags) AddFlags(flagset *pflag.FlagSet) + func (o *ResourceBuilderFlags) StopOnError() *ResourceBuilderFlags + func (o *ResourceBuilderFlags) ToBuilder(restClientGetter RESTClientGetter, resources []string) ResourceFinder + func (o *ResourceBuilderFlags) WithAll(defaultVal bool) *ResourceBuilderFlags + func (o *ResourceBuilderFlags) WithAllNamespaces(defaultVal bool) *ResourceBuilderFlags + func (o *ResourceBuilderFlags) WithFieldSelector(selector string) *ResourceBuilderFlags + func (o *ResourceBuilderFlags) WithFile(recurse bool, files ...string) *ResourceBuilderFlags + func (o *ResourceBuilderFlags) WithLabelSelector(selector string) *ResourceBuilderFlags + func (o *ResourceBuilderFlags) WithLatest() *ResourceBuilderFlags + func (o *ResourceBuilderFlags) WithLocal(defaultVal bool) *ResourceBuilderFlags + func (o *ResourceBuilderFlags) WithScheme(scheme *runtime.Scheme) *ResourceBuilderFlags + type ResourceFindBuilderWrapper struct + func (b *ResourceFindBuilderWrapper) Do() resource.Visitor + type ResourceFinder interface + Do func() resource.Visitor + func NewSimpleFakeResourceFinder(infos ...*resource.Info) ResourceFinder + func ResourceFinderForResult(result resource.Visitor) ResourceFinder + type ResourceFinderFunc func() resource.Visitor + func (fn ResourceFinderFunc) Do() resource.Visitor + type TestConfigFlags struct + func NewTestConfigFlags() *TestConfigFlags + func (f *TestConfigFlags) ToDiscoveryClient() (discovery.CachedDiscoveryInterface, error) + func (f *TestConfigFlags) ToRESTConfig() (*rest.Config, error) + func (f *TestConfigFlags) ToRESTMapper() (meta.RESTMapper, error) + func (f *TestConfigFlags) ToRawKubeConfigLoader() clientcmd.ClientConfig + func (f *TestConfigFlags) WithClientConfig(clientConfig clientcmd.ClientConfig) *TestConfigFlags + func (f *TestConfigFlags) WithDiscoveryClient(c discovery.CachedDiscoveryInterface) *TestConfigFlags + func (f *TestConfigFlags) WithNamespace(ns string) *TestConfigFlags + func (f *TestConfigFlags) WithRESTMapper(mapper meta.RESTMapper) *TestConfigFlags