vjobs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// Level0 is the level of print indent
	Level0 = iota
	// Level1 is the level of print indent
	Level1
	// Level2 is the level of print indent
	Level2

	// Name  name etc below key words are used in job print format
	Name string = "Name"
	// Creation create
	Creation string = "Creation"
	// Phase phase
	Phase string = "Phase"
	// Replicas  replicas
	Replicas string = "Replicas"
	// Min  minimum
	Min string = "Min"
	// Scheduler scheduler
	Scheduler string = "Scheduler"
	// Pending  pending
	Pending string = "Pending"
	// Running running
	Running string = "Running"
	// Succeeded success
	Succeeded string = "Succeeded"
	// Terminating terminating
	Terminating string = "Terminating"
	// Version version
	Version string = "Version"
	// Failed  failed
	Failed string = "Failed"
	// Unknown pod
	Unknown string = "Unknown"
	// RetryCount retry count
	RetryCount string = "RetryCount"
	// JobType  job type
	JobType string = "JobType"
	// Namespace job namespace
	Namespace string = "Namespace"
)

Variables

This section is empty.

Functions

func GetEvents

func GetEvents(config *rest.Config, job *v1alpha1.Job) []coreV1.Event

GetEvents get the job event by config.

func InitViewFlags

func InitViewFlags(cmd *cobra.Command)

InitViewFlags init the view command flags.

func ListJobs

func ListJobs() error

ListJobs lists all jobs details.

func PrintEvents

func PrintEvents(events []coreV1.Event, writer io.Writer)

PrintEvents print event info to writer.

func PrintJobInfo

func PrintJobInfo(job *v1alpha1.Job, writer io.Writer)

PrintJobInfo print the job detailed info into writer.

func PrintJobs

func PrintJobs(jobs *v1alpha1.JobList, writer io.Writer)

PrintJobs prints all jobs details.

func ViewJob

func ViewJob() error

ViewJob gives full details of the job.

func WriteLine

func WriteLine(writer io.Writer, spaces int, content string, params ...interface{})

WriteLine write lines with specified indent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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