Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JobKeyByName ¶
JobKeyByName gets the key for the job name.
func JobKeyByReq ¶
JobKeyByReq gets the key for the job request.
Types ¶
type Cache ¶
type Cache interface { Run(stopCh <-chan struct{}) Get(key string) (*apis.JobInfo, error) GetStatus(key string) (*v1alpha1.JobStatus, error) Add(obj *v1alpha1.Job) error Update(obj *v1alpha1.Job) error Delete(obj *v1alpha1.Job) error AddPod(pod *v1.Pod) error UpdatePod(pod *v1.Pod) error DeletePod(pod *v1.Pod) error TaskCompleted(jobKey, taskName string) bool TaskFailed(jobKey, taskName string) bool }
Cache Interface.
Click to show internal directories.
Click to hide internal directories.