images

package
v0.0.0-...-00984ce Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2018 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Index

Constants

View Source
const PruneImagesRecommendedName = "images"

PruneImagesRecommendedName is the recommended command name

Variables

This section is empty.

Functions

func NewCmdPruneImages

func NewCmdPruneImages(f kcmdutil.Factory, parentName, name string, streams genericclioptions.IOStreams) *cobra.Command

NewCmdPruneImages implements the OpenShift cli prune images command.

Types

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

Jump to

Keyboard shortcuts

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