Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetJobEvents ¶
GetJobEvents gets events associated to job.
Types ¶
type Job ¶
type Job struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Job. Pods common.PodInfo `json:"pods"` // Container images of the Job. ContainerImages []string `json:"containerImages"` }
Job is a presentation layer view of Kubernetes Job resource. This means it is Job plus additional augumented data we can get from other sources
type JobDetail ¶
type JobDetail struct { ObjectMeta common.ObjectMeta `json:"objectMeta"` TypeMeta common.TypeMeta `json:"typeMeta"` // Aggregate information about pods belonging to this Job. PodInfo common.PodInfo `json:"podInfo"` // Detailed information about Pods belonging to this Job. PodList pod.PodList `json:"podList"` // Container images of the Job. ContainerImages []string `json:"containerImages"` // List of events related to this Job. EventList common.EventList `json:"eventList"` // Parallelism specifies the maximum desired number of pods the job should run at any given // time. Parallelism *int32 `json:"paralleism"` // Completions specifies the desired number of successfully finished pods the job should be // run with. Completions *int32 `json:"completions"` }
JobDetail is a presentation layer view of Kubernetes Job resource. This means it is Job plus additional augmented data we can get from other sources (like services that target the same pods).
type JobList ¶
type JobList struct { // Unordered list of Jobs. Jobs []Job `json:"jobs"` }
JobList contains a list of Jobs in the cluster.
func GetJobList ¶
GetJobList returns a list of all Jobs in the cluster.
func GetJobListFromChannels ¶
func GetJobListFromChannels(channels *common.ResourceChannels) ( *JobList, error)
GetJobList returns a list of all Jobs in the cluster reading required resource list once from the channels.
Click to show internal directories.
Click to hide internal directories.