Documentation ¶
Index ¶
- Constants
- func DeleteJob() error
- func GetEvents(config *rest.Config, job *v1alpha1.Job) []coreV1.Event
- func HumanDuration(d time.Duration) string
- func InitDeleteFlags(cmd *cobra.Command)
- func InitListFlags(cmd *cobra.Command)
- func InitResumeFlags(cmd *cobra.Command)
- func InitRunFlags(cmd *cobra.Command)
- func InitSuspendFlags(cmd *cobra.Command)
- 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 ResumeJob() error
- func RunJob() error
- func SuspendJob() error
- func ViewJob() error
- func WriteLine(writer io.Writer, spaces int, content string, params ...interface{})
Constants ¶
View Source
const ( // 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" )
View Source
const ( Level0 = iota Level1 Level2 )
level of print indent.
Variables ¶
This section is empty.
Functions ¶
func HumanDuration ¶
HumanDuration translate time.Duration to human readable time string.
func InitDeleteFlags ¶
InitDeleteFlags init the delete command flags.
func InitResumeFlags ¶
InitResumeFlags init resume command flags.
func InitSuspendFlags ¶
InitSuspendFlags init suspend related flags.
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.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.