prune

package
v3.10.1-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2018 License: Apache-2.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PruneRecommendedName       = "prune"
	PruneGroupsRecommendedName = "groups"
)
View Source
const PruneBuildsRecommendedName = "builds"
View Source
const PruneDeploymentsRecommendedName = "deployments"
View Source
const PruneImagesRecommendedName = "images"

PruneImagesRecommendedName is the recommended command name

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, errOut io.Writer) *cobra.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
	KubeClient 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

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
	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.

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.

Jump to

Keyboard shortcuts

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