Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginClientset ¶
type PluginClientset struct {
KubeClients kubernetes.Interface
}
PluginClientset clientset.
type PluginInterface ¶
type PluginInterface interface { // The unique name of Plugin. Name() string // for all pod when createJobPod OnPodCreate(pod *v1.Pod, job *vcbatch.Job) error // called when do job initiation // Note: it can be called multi times, must be idempotent OnJobAdd(job *vcbatch.Job) error // called when killJob // Note: it can be called multi times, must be idempotent OnJobDelete(job *vcbatch.Job) error // called when job updated // Note: it can be called multi times, must be idempotent OnJobUpdate(job *vcbatch.Job) error }
PluginInterface interface.
Click to show internal directories.
Click to hide internal directories.