Documentation ¶
Index ¶
- Constants
- func NewCmdPruneBuilds(f *clientcmd.Factory, parentName, name string, out io.Writer) *cobra.Command
- func NewCmdPruneDeployments(f *clientcmd.Factory, parentName, name string, out io.Writer) *cobra.Command
- func NewCmdPruneImages(f *clientcmd.Factory, parentName, name string, out io.Writer) *cobra.Command
- func NewCommandPrune(name, fullName string, f *clientcmd.Factory, out, errOut io.Writer) *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 ¶
NewCmdPruneBuilds implements the OpenShift cli prune builds command.
func NewCmdPruneDeployments ¶
func NewCmdPruneDeployments(f *clientcmd.Factory, parentName, name string, out io.Writer) *cobra.Command
NewCmdPruneDeployments implements the OpenShift cli prune deployments command.
func NewCmdPruneImages ¶
NewCmdPruneImages implements the OpenShift cli prune images command.
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 *clientcmd.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 KClient kclientset.Interface Out io.Writer }
PruneDeploymentsOptions holds all the required options for pruning deployments.
func (*PruneDeploymentsOptions) Complete ¶
func (o *PruneDeploymentsOptions) Complete(f *clientcmd.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 IgnoreInvalidRefs bool ClientConfig *restclient.Config AppsClient appsclient.AppsInterface BuildClient buildclient.BuildInterface ImageClient imageclient.ImageInterface 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 *clientcmd.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.