top

package
v3.11.2-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2018 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ImageLayerEdgeKind               = "ImageLayer"
	ImageTopLayerEdgeKind            = "ImageTopLayer"
	ImageStreamImageEdgeKind         = "ImageStreamImage"
	HistoricImageStreamImageEdgeKind = "HistoricImageStreamImage"
	PodImageEdgeKind                 = "PodImage"
	ParentImageEdgeKind              = "ParentImage"
)
View Source
const (
	TopRecommendedName = "top"

	DefaultHeapsterNamespace = "openshift-infra"
	DefaultHeapsterScheme    = "https"
	DefaultHeapsterService   = "heapster"
)
View Source
const TopImageStreamsRecommendedName = "imagestreams"
View Source
const (
	TopImagesRecommendedName = "images"
)

Variables

View Source
var ImageColumns = []string{"NAME", "IMAGESTREAMTAG", "PARENTS", "USAGE", "METADATA", "STORAGE"}
View Source
var ImageStreamColumns = []string{"NAME", "STORAGE", "IMAGES", "LAYERS"}

Functions

func NewCmdTopImageStreams

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

NewCmdTopImageStreams implements the OpenShift cli top imagestreams command.

func NewCmdTopImages

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

NewCmdTopImages implements the OpenShift cli top images command.

func NewCommandTop

func NewCommandTop(name, fullName string, f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

func Print

func Print(out io.Writer, headers []string, infos []Info)

Types

type Info

type Info interface {
	PrintLine(out io.Writer)
}

type TopImageStreamsOptions

type TopImageStreamsOptions struct {
	// internal values
	Images  *imagev1.ImageList
	Streams *imagev1.ImageStreamList

	genericclioptions.IOStreams
}

func NewTopImageStreamsOptions

func NewTopImageStreamsOptions(streams genericclioptions.IOStreams) *TopImageStreamsOptions

func (*TopImageStreamsOptions) Complete

func (o *TopImageStreamsOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

Complete turns a partially defined TopImageStreamsOptions into a solvent structure which can be validated and used for showing limits usage.

func (TopImageStreamsOptions) Run

func (o TopImageStreamsOptions) Run() error

Run contains all the necessary functionality to show current image references.

func (TopImageStreamsOptions) Validate

func (o TopImageStreamsOptions) Validate(cmd *cobra.Command) error

Validate ensures that a TopImageStreamsOptions is valid and can be used to execute command.

type TopImagesOptions

type TopImagesOptions struct {
	// internal values
	Images  *imagev1.ImageList
	Streams *imagev1.ImageStreamList
	Pods    *corev1.PodList

	genericclioptions.IOStreams
}

func NewTopImagesOptions

func NewTopImagesOptions(streams genericclioptions.IOStreams) *TopImagesOptions

func (*TopImagesOptions) Complete

func (o *TopImagesOptions) Complete(f kcmdutil.Factory, cmd *cobra.Command, args []string) error

Complete turns a partially defined TopImagesOptions into a solvent structure which can be validated and used for showing limits usage.

func (TopImagesOptions) Run

func (o TopImagesOptions) Run() error

Run contains all the necessary functionality to show current image references.

func (TopImagesOptions) Validate

func (o TopImagesOptions) Validate(cmd *cobra.Command) error

Validate ensures that a TopImagesOptions is valid and can be used to execute command.

Jump to

Keyboard shortcuts

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