Documentation ¶
Index ¶
- Constants
- func NewCmdPruneBuilds(f kcmdutil.Factory, parentName, name string, ...) *cobra.Command
- func NewCmdPruneDeployments(f kcmdutil.Factory, parentName, name string, ...) *cobra.Command
- func NewCmdPruneImages(f kcmdutil.Factory, parentName, name string, ...) *cobra.Command
- func NewCommandPrune(name, fullName string, f kcmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type PruneBuildsOptions
- type PruneDeploymentsOptions
- type PruneImagesOptions
Constants ¶
const ( PruneRecommendedName = "prune" PruneGroupsRecommendedName = "groups" )
const PruneBuildsRecommendedName = "builds"
const PruneDeploymentsRecommendedName = "deployments"
const PruneImagesRecommendedName = "images"
PruneImagesRecommendedName is the recommended command name
Variables ¶
This section is empty.
Functions ¶
func NewCmdPruneBuilds ¶
func NewCmdPruneBuilds(f kcmdutil.Factory, parentName, name string, streams genericclioptions.IOStreams) *cobra.Command
NewCmdPruneBuilds implements the OpenShift cli prune builds command.
func NewCmdPruneDeployments ¶
func NewCmdPruneDeployments(f kcmdutil.Factory, parentName, name string, streams genericclioptions.IOStreams) *cobra.Command
NewCmdPruneDeployments implements the OpenShift cli prune deployments command.
func NewCmdPruneImages ¶
func NewCmdPruneImages(f kcmdutil.Factory, parentName, name string, streams genericclioptions.IOStreams) *cobra.Command
NewCmdPruneImages implements the OpenShift cli prune images command.
func NewCommandPrune ¶
Types ¶
type PruneBuildsOptions ¶
type PruneBuildsOptions struct { Confirm bool Orphans bool KeepYoungerThan time.Duration KeepComplete int KeepFailed int Namespace string BuildClient buildinternalclient.Interface Out io.Writer }
PruneBuildsOptions holds all the required options for pruning builds.
func (*PruneBuildsOptions) Complete ¶
func (o *PruneBuildsOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string, out io.Writer) error
Complete turns a partially defined PruneBuildsOptions into a solvent structure which can be validated and used for pruning builds.
func (PruneBuildsOptions) Run ¶
func (o PruneBuildsOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli prune builds command.
func (PruneBuildsOptions) Validate ¶
func (o PruneBuildsOptions) Validate() error
Validate ensures that a PruneBuildsOptions is valid and can be used to execute pruning.
type PruneDeploymentsOptions ¶
type PruneDeploymentsOptions struct { Confirm bool Orphans bool KeepYoungerThan time.Duration KeepComplete int KeepFailed int Namespace string AppsClient appsclientinternal.DeploymentConfigsGetter KubeClient kclientset.Interface Out io.Writer }
PruneDeploymentsOptions holds all the required options for pruning deployments.
func (*PruneDeploymentsOptions) Complete ¶
func (o *PruneDeploymentsOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string, out io.Writer) error
Complete turns a partially defined PruneDeploymentsOptions into a solvent structure which can be validated and used for pruning deployments.
func (PruneDeploymentsOptions) Run ¶
func (o PruneDeploymentsOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli prune deployments command.
func (PruneDeploymentsOptions) Validate ¶
func (o PruneDeploymentsOptions) Validate() error
Validate ensures that a PruneDeploymentsOptions is valid and can be used to execute pruning.
type PruneImagesOptions ¶
type PruneImagesOptions struct { Confirm bool KeepYoungerThan *time.Duration KeepTagRevisions *int PruneOverSizeLimit *bool AllImages *bool CABundle string RegistryUrlOverride string Namespace string ForceInsecure bool PruneRegistry *bool IgnoreInvalidRefs bool ClientConfig *restclient.Config AppsClient appsclient.AppsInterface BuildClient buildclient.BuildInterface ImageClient imageclient.ImageInterface ImageClientFactory func() (imageclient.ImageInterface, error) DiscoveryClient discovery.DiscoveryInterface KubeClient kclientset.Interface Timeout time.Duration Out io.Writer ErrOut io.Writer }
PruneImagesOptions holds all the required options for pruning images.
func (*PruneImagesOptions) Complete ¶
func (o *PruneImagesOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string, out io.Writer) error
Complete turns a partially defined PruneImagesOptions into a solvent structure which can be validated and used for pruning images.
func (PruneImagesOptions) Run ¶
func (o PruneImagesOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli prune images command.
func (PruneImagesOptions) Validate ¶
func (o PruneImagesOptions) Validate() error
Validate ensures that a PruneImagesOptions is valid and can be used to execute pruning.
Directories ¶
Path | Synopsis |
---|---|
Package prune contains logic for pruning images and interoperating with the integrated Docker registry.
|
Package prune contains logic for pruning images and interoperating with the integrated Docker registry. |