cmd

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdPodNodeMatrix

func NewCmdPodNodeMatrix(streams genericclioptions.IOStreams) *cobra.Command

NewCmdPodNodeMatrix provides a cobra command wrapping PodNodeMatrixOptions

Types

type PodNodeMatrixOptions

type PodNodeMatrixOptions struct {
	genericclioptions.IOStreams
	// contains filtered or unexported fields
}

PodNodeMatrixOptions provides information required to show the pod node matrix.

func NewPodNodeMatrixOptions

func NewPodNodeMatrixOptions(streams genericclioptions.IOStreams) *PodNodeMatrixOptions

NewPodNodeMatrixOptions provides an instance of PodNodeMatrixOptions with default values.

func (*PodNodeMatrixOptions) Complete

func (o *PodNodeMatrixOptions) Complete() error

Complete sets all information required to show pod node matrix

func (*PodNodeMatrixOptions) Print

func (o *PodNodeMatrixOptions) Print(pods []v1.Pod, nm map[string]nodeWrap, nodeNames []string) error

Print prints table view with colors to emphasize results

func (*PodNodeMatrixOptions) Run

func (o *PodNodeMatrixOptions) Run() error

Run shows pod-node matrix according to the given parameters

func (*PodNodeMatrixOptions) Validate

func (o *PodNodeMatrixOptions) Validate(args []string) error

Validate ensures that all required arguments and flag values are provided

Jump to

Keyboard shortcuts

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