prune

package
v1.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2016 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const PruneBuildsRecommendedName = "builds"
View Source
const PruneDeploymentsRecommendedName = "deployments"
View Source
const PruneGroupsRecommendedName = "groups"
View Source
const (
	// PruneImagesRecommendedName is the recommended command name
	PruneImagesRecommendedName = "images"
)
View Source
const PruneRecommendedName = "prune"

Variables

This section is empty.

Functions

func NewCmdPruneBuilds

func NewCmdPruneBuilds(f *clientcmd.Factory, parentName, name string, out io.Writer) *cobra.Command

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

func NewCmdPruneImages(f *clientcmd.Factory, parentName, name string, out io.Writer) *cobra.Command

NewCmdPruneImages implements the OpenShift cli prune images command.

func NewCommandPrune

func NewCommandPrune(name, fullName string, f *clientcmd.Factory, out io.Writer) *cobra.Command

Types

type PruneBuildsOptions added in v1.3.0

type PruneBuildsOptions struct {
	Confirm         bool
	Orphans         bool
	KeepYoungerThan time.Duration
	KeepComplete    int
	KeepFailed      int

	Pruner prune.Pruner
	Client 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

	Pruner prune.Pruner
	Client kclient.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

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
	CABundle            string
	RegistryUrlOverride string

	Pruner prune.Pruner
	Client client.Interface
	Out    io.Writer
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL