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 ¶ added in v0.5.3
NewCmdPruneImages implements the OpenShift cli prune images command.
Types ¶
type PruneBuildsOptions ¶ added in v1.3.0
type PruneBuildsOptions struct { Confirm bool Orphans bool KeepYoungerThan time.Duration KeepComplete int KeepFailed int Namespace string OSClient client.Interface Out io.Writer }
PruneBuildsOptions holds all the required options for pruning builds.
func (*PruneBuildsOptions) Complete ¶ added in v1.3.0
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 ¶ added in v1.3.0
func (o PruneBuildsOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli prune builds command.
func (PruneBuildsOptions) Validate ¶ added in v1.3.0
func (o PruneBuildsOptions) Validate() error
Validate ensures that a PruneBuildsOptions is valid and can be used to execute pruning.
type PruneDeploymentsOptions ¶ added in v1.3.0
type PruneDeploymentsOptions struct { Confirm bool Orphans bool KeepYoungerThan time.Duration KeepComplete int KeepFailed int Namespace string OSClient client.Interface KClient kclientset.Interface Out io.Writer }
PruneDeploymentsOptions holds all the required options for pruning deployments.
func (*PruneDeploymentsOptions) Complete ¶ added in v1.3.0
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 ¶ added in v1.3.0
func (o PruneDeploymentsOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli prune deployments command.
func (PruneDeploymentsOptions) Validate ¶ added in v1.3.0
func (o PruneDeploymentsOptions) Validate() error
Validate ensures that a PruneDeploymentsOptions is valid and can be used to execute pruning.
type PruneImagesOptions ¶ added in v1.0.7
type PruneImagesOptions struct { Confirm bool KeepYoungerThan *time.Duration KeepTagRevisions *int PruneOverSizeLimit *bool AllImages *bool CABundle string RegistryUrlOverride string Namespace string ForceInsecure bool OSClient client.Interface KClient kclientset.Interface RegistryClient *http.Client Out io.Writer Insecure bool }
PruneImagesOptions holds all the required options for pruning images.
func (*PruneImagesOptions) Complete ¶ added in v1.0.7
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 ¶ added in v1.3.0
func (o PruneImagesOptions) Run() error
Run contains all the necessary functionality for the OpenShift cli prune images command.
func (PruneImagesOptions) Validate ¶ added in v1.0.7
func (o PruneImagesOptions) Validate() error
Validate ensures that a PruneImagesOptions is valid and can be used to execute pruning.