Documentation ¶
Index ¶
- Constants
- func GetEvents(config *rest.Config, job *v1alpha1.Job) []coreV1.Event
- func InitViewFlags(cmd *cobra.Command)
- func ListJobs() error
- func PrintEvents(events []coreV1.Event, writer io.Writer)
- func PrintJobInfo(job *v1alpha1.Job, writer io.Writer)
- func PrintJobs(jobs *v1alpha1.JobList, writer io.Writer)
- func ViewJob() error
- func WriteLine(writer io.Writer, spaces int, content string, params ...interface{})
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 InitViewFlags ¶
InitViewFlags init the view command flags
func PrintEvents ¶
PrintEvents print event info to writer
func PrintJobInfo ¶
PrintJobInfo print the job detailed info into writer
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.