ctop

package
v1.6.0-alpha.4 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 14 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