Documentation ¶
Index ¶
- func AreAllJobsCompleted(jobPrefix, namespace string) (bool, error)
- func WaitOnDeleted(jobPrefix, namespace string, sleep, duration time.Duration) (bool, error)
- func WaitOnReady(jobPrefix, namespace string, sleep, duration time.Duration) (bool, error)
- type Job
- func CreateJobFromFile(filename, name, namespace string) (*Job, error)
- func CreateJobFromFileDeleteIfExists(filename, name, namespace string) (*Job, error)
- func CreateWindowsJobFromTemplate(filename, name, namespace string, windowsTestImages *engine.WindowsTestImages) (*Job, error)
- func CreateWindowsJobFromTemplateDeleteIfExists(filename, name, namespace string, windowsTestImages *engine.WindowsTestImages) (*Job, error)
- func Get(jobName, namespace string) (*Job, error)
- func GetAllByPrefix(prefix, namespace string) ([]Job, error)
- type List
- type Spec
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AreAllJobsCompleted ¶
AreAllJobsCompleted will return true if all jobs with a common prefix in a given namespace are in a Completed State
func WaitOnDeleted ¶ added in v0.36.0
WaitOnDeleted returns when a job is successfully deleted
Types ¶
type Job ¶
type Job struct { Metadata pod.Metadata `json:"metadata"` Spec Spec `json:"spec"` Status Status `json:"status"` }
Job is used to parse data from kubectl get jobs
func CreateJobFromFile ¶
CreateJobFromFile will create a Job from file with a name
func CreateJobFromFileDeleteIfExists ¶ added in v0.36.0
CreateJobFromFileDeleteIfExists will create a Job from file, deleting any pre-existing job with the same name
func CreateWindowsJobFromTemplate ¶ added in v0.38.0
func CreateWindowsJobFromTemplate(filename, name, namespace string, windowsTestImages *engine.WindowsTestImages) (*Job, error)
CreateWindowsJobFromTemplate will create a Job from file with a name
func CreateWindowsJobFromTemplateDeleteIfExists ¶ added in v0.38.0
func CreateWindowsJobFromTemplateDeleteIfExists(filename, name, namespace string, windowsTestImages *engine.WindowsTestImages) (*Job, error)
CreateWindowsJobFromTemplateDeleteIfExists will create a Job from file, deleting any pre-existing job with the same name
func GetAllByPrefix ¶ added in v0.36.0
GetAllByPrefix will return all jobs in a given namespace that match a prefix
type List ¶
type List struct {
Jobs []Job `json:"items"`
}
List is a container that holds all jobs returned from doing a kubectl get jobs