Versions in this module Expand all Collapse all v0 v0.24.0 Mar 25, 2022 Changes in this version + func AddSpecialVerb(verb string, gr schema.GroupResource) + func NameFromCommandArgs(cmd *cobra.Command, args []string) (string, error) + func NewCmdCreate(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateClusterRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateClusterRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateConfigMap(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateCronJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateDeployment(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateIngress(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateJob(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateNamespace(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreatePodDisruptionBudget(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreatePriorityClass(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateQuota(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateRole(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateRoleBinding(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateSecret(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateSecretDockerRegistry(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateSecretGeneric(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateSecretTLS(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateService(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateServiceAccount(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateServiceClusterIP(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateServiceExternalName(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateServiceLoadBalancer(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateServiceNodePort(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func NewCmdCreateToken(f cmdutil.Factory, ioStreams genericclioptions.IOStreams) *cobra.Command + func RunEditOnCreate(f cmdutil.Factory, printFlags *genericclioptions.PrintFlags, ...) error + type ClusterRoleBindingOptions struct + Client rbacclientv1.RbacV1Interface + ClusterRole string + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + FieldManager string + Groups []string + Name string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + ServiceAccounts []string + Users []string + func NewClusterRoleBindingOptions(ioStreams genericclioptions.IOStreams) *ClusterRoleBindingOptions + func (o *ClusterRoleBindingOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *ClusterRoleBindingOptions) Run() error + type ConfigMapOptions struct + AppendHash bool + Client corev1client.CoreV1Interface + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + EnvFileSources []string + FieldManager string + FileSources []string + LiteralSources []string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Type string + func NewConfigMapOptions(ioStreams genericclioptions.IOStreams) *ConfigMapOptions + func (o *ConfigMapOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *ConfigMapOptions) Run() error + func (o *ConfigMapOptions) Validate() error + type CreateClusterRoleOptions struct + AggregationRule map[string]string + FieldManager string + NonResourceURLs []string + func (c *CreateClusterRoleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (c *CreateClusterRoleOptions) RunCreateRole() error + func (c *CreateClusterRoleOptions) Validate() error + type CreateCronJobOptions struct + Builder *resource.Builder + Client batchv1client.BatchV1Interface + Command []string + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + Image string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Restart string + Schedule string + func NewCreateCronJobOptions(ioStreams genericclioptions.IOStreams) *CreateCronJobOptions + func (o *CreateCronJobOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateCronJobOptions) Run() error + type CreateDeploymentOptions struct + Client appsv1client.AppsV1Interface + Command []string + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + Images []string + Name string + Namespace string + Port int32 + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Replicas int32 + func NewCreateDeploymentOptions(ioStreams genericclioptions.IOStreams) *CreateDeploymentOptions + func (o *CreateDeploymentOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateDeploymentOptions) Run() error + func (o *CreateDeploymentOptions) Validate() error + type CreateIngressOptions struct + Annotations []string + Client networkingv1client.NetworkingV1Interface + CreateAnnotation bool + DefaultBackend string + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + IngressClass string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Rules []string + func NewCreateIngressOptions(ioStreams genericclioptions.IOStreams) *CreateIngressOptions + func (o *CreateIngressOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateIngressOptions) Run() error + func (o *CreateIngressOptions) Validate() error + type CreateJobOptions struct + Builder *resource.Builder + Client batchv1client.BatchV1Interface + Command []string + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + From string + Image string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + func NewCreateJobOptions(ioStreams genericclioptions.IOStreams) *CreateJobOptions + func (o *CreateJobOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateJobOptions) Run() error + func (o *CreateJobOptions) Validate() error + type CreateOptions struct + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EditBeforeCreate bool + FilenameOptions resource.FilenameOptions + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj kruntime.Object) error + Raw string + RecordFlags *genericclioptions.RecordFlags + Recorder genericclioptions.Recorder + Selector string + func NewCreateOptions(ioStreams genericclioptions.IOStreams) *CreateOptions + func (o *CreateOptions) Complete(f cmdutil.Factory, cmd *cobra.Command) error + func (o *CreateOptions) RunCreate(f cmdutil.Factory, cmd *cobra.Command) error + func (o *CreateOptions) ValidateArgs(cmd *cobra.Command, args []string) error + type CreateRoleOptions struct + Client clientgorbacv1.RbacV1Interface + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + Mapper meta.RESTMapper + Name string + Namespace string + OutputFormat string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + ResourceNames []string + Resources []ResourceOptions + Verbs []string + func NewCreateRoleOptions(ioStreams genericclioptions.IOStreams) *CreateRoleOptions + func (o *CreateRoleOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateRoleOptions) RunCreateRole() error + func (o *CreateRoleOptions) Validate() error + type CreateSecretDockerRegistryOptions struct + AppendHash bool + Client corev1client.CoreV1Interface + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + Email string + EnforceNamespace bool + FieldManager string + FileSources []string + Name string + Namespace string + Password string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Server string + Username string + func NewSecretDockerRegistryOptions(ioStreams genericclioptions.IOStreams) *CreateSecretDockerRegistryOptions + func (o *CreateSecretDockerRegistryOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateSecretDockerRegistryOptions) Run() error + func (o *CreateSecretDockerRegistryOptions) Validate() error + type CreateSecretOptions struct + AppendHash bool + Client corev1client.CoreV1Interface + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + EnvFileSources []string + FieldManager string + FileSources []string + LiteralSources []string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Type string + func NewSecretOptions(ioStreams genericclioptions.IOStreams) *CreateSecretOptions + func (o *CreateSecretOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateSecretOptions) Run() error + func (o *CreateSecretOptions) Validate() error + type CreateSecretTLSOptions struct + AppendHash bool + Cert string + Client corev1client.CoreV1Interface + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + Key string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + func NewSecretTLSOptions(ioStrems genericclioptions.IOStreams) *CreateSecretTLSOptions + func (o *CreateSecretTLSOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *CreateSecretTLSOptions) Run() error + func (o *CreateSecretTLSOptions) Validate() error + type CreateSubcommandOptions struct + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + DynamicClient dynamic.Interface + EnforceNamespace bool + FieldManager string + Mapper meta.RESTMapper + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj printers.ResourcePrinterFunc + StructuredGenerator generate.StructuredGenerator + func NewCreateSubcommandOptions(ioStreams genericclioptions.IOStreams) *CreateSubcommandOptions + func (o *CreateSubcommandOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string, ...) error + func (o *CreateSubcommandOptions) Run() error + type DockerConfig map[string]DockerConfigEntry + type DockerConfigEntry struct + Auth string + Email string + Password string + Username string + type DockerConfigJSON struct + Auths DockerConfig + HttpHeaders map[string]string + type NamespaceOptions struct + Client *coreclient.CoreV1Client + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + FieldManager string + Name string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + func NewNamespaceOptions(ioStreams genericclioptions.IOStreams) *NamespaceOptions + func (o *NamespaceOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *NamespaceOptions) Run() error + func (o *NamespaceOptions) Validate() error + type PodDisruptionBudgetOpts struct + Client *policyv1client.PolicyV1Client + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resourcecli.QueryParamVerifier + EnforceNamespace bool + FieldManager string + MaxUnavailable string + MinAvailable string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Selector string + func NewPodDisruptionBudgetOpts(ioStreams genericclioptions.IOStreams) *PodDisruptionBudgetOpts + func (o *PodDisruptionBudgetOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *PodDisruptionBudgetOpts) Run() error + func (o *PodDisruptionBudgetOpts) Validate() error + type PriorityClassOptions struct + Client *schedulingv1client.SchedulingV1Client + CreateAnnotation bool + Description string + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + FieldManager string + GlobalDefault bool + Name string + PreemptionPolicy string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Value int32 + func NewPriorityClassOptions(ioStreams genericclioptions.IOStreams) *PriorityClassOptions + func (o *PriorityClassOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *PriorityClassOptions) Run() error + type QuotaOpts struct + Client *coreclient.CoreV1Client + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resourcecli.QueryParamVerifier + EnforceNamespace bool + FieldManager string + Hard string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Scopes string + func NewQuotaOpts(ioStreams genericclioptions.IOStreams) *QuotaOpts + func (o *QuotaOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *QuotaOpts) Run() error + func (o *QuotaOpts) Validate() error + type ResourceOptions struct + Group string + Resource string + SubResource string + type RoleBindingOptions struct + Client rbacclientv1.RbacV1Interface + ClusterRole string + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + Groups []string + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + Role string + ServiceAccounts []string + Users []string + func NewRoleBindingOptions(ioStreams genericclioptions.IOStreams) *RoleBindingOptions + func (o *RoleBindingOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *RoleBindingOptions) Run() error + func (o *RoleBindingOptions) Validate() error + type ServiceAccountOpts struct + Client *coreclient.CoreV1Client + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + FieldManager string + Mapper meta.RESTMapper + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + func NewServiceAccountOpts(ioStreams genericclioptions.IOStreams) *ServiceAccountOpts + func (o *ServiceAccountOpts) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *ServiceAccountOpts) Run() error + func (o *ServiceAccountOpts) Validate() error + type ServiceOptions struct + Client corev1client.CoreV1Interface + ClusterIP string + CreateAnnotation bool + DryRunStrategy cmdutil.DryRunStrategy + DryRunVerifier *resource.QueryParamVerifier + EnforceNamespace bool + ExternalName string + FieldManager string + Name string + Namespace string + NodePort int + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + TCP []string + Type corev1.ServiceType + func NewServiceOptions(ioStreams genericclioptions.IOStreams, serviceType corev1.ServiceType) *ServiceOptions + func (o *ServiceOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *ServiceOptions) Run() error + func (o *ServiceOptions) Validate() error + type TokenOptions struct + Audiences []string + BoundObjectKind string + BoundObjectName string + BoundObjectUID string + CoreClient corev1client.CoreV1Interface + Duration time.Duration + Name string + Namespace string + PrintFlags *genericclioptions.PrintFlags + PrintObj func(obj runtime.Object) error + func NewTokenOpts(ioStreams genericclioptions.IOStreams) *TokenOptions + func (o *TokenOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error + func (o *TokenOptions) Run() error + func (o *TokenOptions) Validate() error