ctop

package
v1.1.9 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdCtop

func NewCmdCtop(tkcContext *config.TkcContext, streams genericclioptions.IOStreams) *cobra.Command

NewCmdTop creates the ctop subcommand

Types

type CtopKind

type CtopKind string
const (
	CtopPod  CtopKind = "pod"
	CtopNode CtopKind = "node"
)

type CtopOptions

type CtopOptions struct {
	Target           string
	Kind             CtopKind
	Namespace        string
	Image            string
	HostDockerSocket string

	KubeCli *kubernetes.Clientset

	RestConfig *rest.Config

	genericclioptions.IOStreams
}

CtopOptions specify the target resource stats to show

func NewCtopOptions

func NewCtopOptions(iostreams genericclioptions.IOStreams) *CtopOptions

NewCtopOptions create a ctop options

func (*CtopOptions) Complete

func (o *CtopOptions) Complete(cmd *cobra.Command, tkcContext *config.TkcContext, args []string) error

func (*CtopOptions) Run

func (o *CtopOptions) Run() error

Jump to

Keyboard shortcuts

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