pod

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Name pod name
	Name string = "Name"
	// Ready pod ready
	Ready string = "Ready"
	// Status pod status
	Status string = "Status"
	// Restart pod restart
	Restart string = "Restart"
	// Age pod age
	Age string = "Age"
)

Variables

This section is empty.

Functions

func InitListFlags

func InitListFlags(cmd *cobra.Command)

InitListFlags init list command flags.

func ListPods

func ListPods(ctx context.Context) error

ListPods lists all pods details created by vcjob

func PrintPods

func PrintPods(pods *corev1.PodList, writer io.Writer)

Types

type PodInfo

type PodInfo struct {
	Name              string
	ReadyContainers   string
	Status            string
	Restarts          string
	CreationTimestamp string
}

PodInfo holds information about a pod.

Jump to

Keyboard shortcuts

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