Documentation ¶
Index ¶
- type Job
- type JobList
- func CreateJobList(jobs []batch.Job, pods []api.Pod, events []api.Event, ...) *JobList
- func GetJobList(client client.Interface, nsQuery *common.NamespaceQuery, ...) (*JobList, error)
- func GetJobListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, ...) (*JobList, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 JobList ¶
type JobList struct { ListMeta common.ListMeta `json:"listMeta"` // Unordered list of Jobs. Jobs []Job `json:"jobs"` CumulativeMetrics []metric.Metric `json:"cumulativeMetrics"` }
JobList contains a list of Jobs in the cluster.
func CreateJobList ¶
func CreateJobList(jobs []batch.Job, pods []api.Pod, events []api.Event, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) *JobList
CreateJobList returns a list of all Job model objects in the cluster, based on all Kubernetes Job API objects.
func GetJobList ¶
func GetJobList(client client.Interface, nsQuery *common.NamespaceQuery, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) (*JobList, error)
GetJobList returns a list of all Jobs in the cluster.
func GetJobListFromChannels ¶
func GetJobListFromChannels(channels *common.ResourceChannels, dsQuery *dataselect.DataSelectQuery, heapsterClient *heapster.HeapsterClient) ( *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.