app

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmpty = errors.New("empty")
)

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type Container

type Container struct {
	Type            containerType
	Name            string
	Image           string
	ImagePullPolicy string
	Ports           string
	Status          corev1.ContainerStatus
}

func (Container) Age

func (c Container) Age() string

func (Container) Ready

func (c Container) Ready() bool

func (Container) RestartCol

func (c Container) RestartCol() string

func (Container) RestartCount

func (c Container) RestartCount() int32

func (Container) RestartDurationString

func (c Container) RestartDurationString() string

func (Container) State

func (c Container) State() string

type ContainerState

type ContainerState string
var (
	Waiting    ContainerState = "Waiting"
	Running    ContainerState = "Running"
	Terminated ContainerState = "Terminated"
)

type CtrOptions

type CtrOptions struct {
	// contains filtered or unexported fields
}

CtrOptions app options

func (*CtrOptions) Complete

func (o *CtrOptions) Complete(cmd *cobra.Command, args []string) error

Complete prepare for ctr

func (*CtrOptions) Run

func (o *CtrOptions) Run()

Run execute

Jump to

Keyboard shortcuts

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