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 {
// Name returns the unique name of Plugin.
Name() string
// OnPodCreate is called for all pod when createJobPod
OnPodCreate(pod *v1.Pod, job *vcbatch.Job) error
// OnJobAdd is called when do job initiation
// Note: it can be called multi times, must be idempotent
OnJobAdd(job *vcbatch.Job) error
// OnJobDelete is called when killJob
// Note: it can be called multi times, must be idempotent
OnJobDelete(job *vcbatch.Job) error
// OnJobUpdate is 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.