Documentation ¶
Index ¶
- func CalculatePatch(patch *Patch, encoder runtime.Encoder, mutateFn patchFn) bool
- func NewCmdImage(f cmdutil.Factory, out, err io.Writer) *cobra.Command
- func NewCmdResources(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- func NewCmdSelector(f cmdutil.Factory, out io.Writer) *cobra.Command
- func NewCmdServiceAccount(f cmdutil.Factory, out, err io.Writer) *cobra.Command
- func NewCmdSet(f cmdutil.Factory, out, err io.Writer) *cobra.Command
- func NewCmdSubject(f cmdutil.Factory, out io.Writer, errOut io.Writer) *cobra.Command
- type ImageOptions
- type Patch
- type ResourcesOptions
- type SelectorOptions
- type SubjectOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CalculatePatch ¶
CalculatePatch calls the mutation function on the provided info object, and generates a strategic merge patch for the changes in the object. Encoder must be able to encode the info into the appropriate destination type. This function returns whether the mutation function made any change in the original object.
func NewCmdResources ¶
func NewCmdSelector ¶
NewCmdSelector is the "set selector" command.
func NewCmdServiceAccount ¶
NewCmdServiceAccount returns the "set serviceaccount" command.
Types ¶
type ImageOptions ¶
type ImageOptions struct { resource.FilenameOptions Mapper meta.RESTMapper Typer runtime.ObjectTyper Infos []*resource.Info Encoder runtime.Encoder Selector string Out io.Writer Err io.Writer DryRun bool ShortOutput bool All bool Record bool Output string ChangeCause string Local bool Cmd *cobra.Command ResolveImage func(in string) (string, error) PrintObject func(cmd *cobra.Command, isLocal bool, mapper meta.RESTMapper, obj runtime.Object, out io.Writer) error UpdatePodSpecForObject func(obj runtime.Object, fn func(*api.PodSpec) error) (bool, error) Resources []string ContainerImages map[string]string }
ImageOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
func (*ImageOptions) Run ¶
func (o *ImageOptions) Run() error
func (*ImageOptions) Validate ¶
func (o *ImageOptions) Validate() error
type ResourcesOptions ¶
type ResourcesOptions struct { resource.FilenameOptions Mapper meta.RESTMapper Typer runtime.ObjectTyper Infos []*resource.Info Encoder runtime.Encoder Out io.Writer Err io.Writer Selector string ContainerSelector string ShortOutput bool All bool Record bool ChangeCause string Local bool Cmd *cobra.Command Limits string Requests string ResourceRequirements api.ResourceRequirements PrintObject func(cmd *cobra.Command, isLocal bool, mapper meta.RESTMapper, obj runtime.Object, out io.Writer) error UpdatePodSpecForObject func(obj runtime.Object, fn func(*api.PodSpec) error) (bool, error) Resources []string }
ResourcesOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags
func (*ResourcesOptions) Run ¶
func (o *ResourcesOptions) Run() error
func (*ResourcesOptions) Validate ¶
func (o *ResourcesOptions) Validate() error
type SelectorOptions ¶
type SelectorOptions struct { PrintObject func(obj runtime.Object) error ClientForMapping func(mapping *meta.RESTMapping) (resource.RESTClient, error) // contains filtered or unexported fields }
SelectorOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags()
func (*SelectorOptions) RunSelector ¶
func (o *SelectorOptions) RunSelector() error
RunSelector executes the command.
type SubjectOptions ¶
type SubjectOptions struct { resource.FilenameOptions Mapper meta.RESTMapper Typer runtime.ObjectTyper Infos []*resource.Info Encoder runtime.Encoder Out io.Writer Err io.Writer Selector string ContainerSelector string ShortOutput bool All bool DryRun bool Local bool Users []string Groups []string ServiceAccounts []string PrintObject func(mapper meta.RESTMapper, obj runtime.Object, out io.Writer) error }
SubjectOptions is the start of the data required to perform the operation. As new fields are added, add them here instead of referencing the cmd.Flags
func (*SubjectOptions) Run ¶
func (o *SubjectOptions) Run(f cmdutil.Factory, fn updateSubjects) error
func (*SubjectOptions) Validate ¶
func (o *SubjectOptions) Validate() error