Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ImageOptions ¶
type ImageOptions struct { Mapper meta.RESTMapper Typer runtime.ObjectTyper Infos []*resource.Info Encoder runtime.Encoder Selector string Out io.Writer Err io.Writer Filenames []string Recursive bool ShortOutput bool All bool Record bool ChangeCause string Local bool Cmd *cobra.Command PrintObject func(cmd *cobra.Command, 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 Patch ¶
Patch represents the result of a mutation to an object.
func CalculatePatches ¶
func CalculatePatches(infos []*resource.Info, encoder runtime.Encoder, mutateFn func(*resource.Info) (bool, error)) []*Patch
CalculatePatches calls the mutation function on each 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. If mutateFn returns false, the object is not included in the final list of patches.
Click to show internal directories.
Click to hide internal directories.