top

package
v3.10.45-1+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 24 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 *clientcmd.Factory, parentName, name string, out io.Writer) *cobra.Command

NewCmdTopImageStreams implements the OpenShift cli top imagestreams command.

func NewCmdTopImages

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

NewCmdTopImages implements the OpenShift cli top images command.

func NewCommandTop

func NewCommandTop(name, fullName string, f *clientcmd.Factory, out, errOut io.Writer) *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  *imageapi.ImageList
	Streams *imageapi.ImageStreamList
	// contains filtered or unexported fields
}

func (*TopImageStreamsOptions) Complete

func (o *TopImageStreamsOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out io.Writer) 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  *imageapi.ImageList
	Streams *imageapi.ImageStreamList
	Pods    *kapi.PodList
	// contains filtered or unexported fields
}

func (*TopImagesOptions) Complete

func (o *TopImagesOptions) Complete(f *clientcmd.Factory, cmd *cobra.Command, args []string, out io.Writer) 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