Documentation ¶
Index ¶
- func AreAllJobsSucceeded(jobPrefix, namespace string) (bool, error)
- func DescribeJobs(jobPrefix, namespace string)
- func WaitOnDeleted(jobPrefix, namespace string, sleep, timeout time.Duration) (bool, error)
- func WaitOnSucceeded(jobPrefix, namespace string, sleep, timeout time.Duration) (bool, error)
- type AreAllJobsSucceededResult
- type GetAllByPrefixResult
- 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 AreAllJobsSucceeded ¶ added in v0.41.0
AreAllJobsSucceeded will return true if all jobs with a common prefix in a given namespace are in a Completed State
func DescribeJobs ¶ added in v0.41.0
func DescribeJobs(jobPrefix, namespace string)
DescribeJobs describes all jobs whose name matches a substring
func WaitOnDeleted ¶ added in v0.36.0
WaitOnDeleted returns when all jobs matching a prefix substring are successfully deleted
Types ¶
type AreAllJobsSucceededResult ¶ added in v0.41.0
type AreAllJobsSucceededResult struct {
// contains filtered or unexported fields
}
AreAllJobsSucceededResult is a return struct for AreAllJobsSucceededAsync
func AreAllJobsSucceededAsync ¶ added in v0.41.0
func AreAllJobsSucceededAsync(jobPrefix, namespace string) AreAllJobsSucceededResult
AreAllJobsSucceededAsync wraps AreAllJobsSucceeded with a struct response for goroutine + channel usage
type GetAllByPrefixResult ¶ added in v0.41.0
type GetAllByPrefixResult struct {
// contains filtered or unexported fields
}
GetAllByPrefixResult is a return struct for GetAllByPrefixAsync
func GetAllByPrefixAsync ¶ added in v0.41.0
func GetAllByPrefixAsync(prefix, namespace string) GetAllByPrefixResult
GetAllByPrefixAsync wraps GetAllByPrefix with a struct response for goroutine + channel usage
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