Documentation ¶
Index ¶
- func FromJobHandlerToHandler(sync JobHandler) generic.Handler
- func RegisterJobGeneratingHandler(ctx context.Context, controller JobController, apply apply.Apply, ...)
- func RegisterJobStatusHandler(ctx context.Context, controller JobController, condition condition.Cond, ...)
- func UpdateJobDeepCopyOnChange(client JobClient, obj *v1.Job, handler func(obj *v1.Job) (*v1.Job, error)) (*v1.Job, error)
- type Interface
- type JobCache
- type JobClient
- type JobController
- type JobGeneratingHandler
- type JobHandler
- type JobIndexer
- type JobStatusHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJobHandlerToHandler ¶
func FromJobHandlerToHandler(sync JobHandler) generic.Handler
func RegisterJobGeneratingHandler ¶
func RegisterJobGeneratingHandler(ctx context.Context, controller JobController, apply apply.Apply, condition condition.Cond, name string, handler JobGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterJobStatusHandler ¶
func RegisterJobStatusHandler(ctx context.Context, controller JobController, condition condition.Cond, name string, handler JobStatusHandler)
Types ¶
type Interface ¶
type Interface interface {
Job() JobController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type JobClient ¶
type JobClient interface { Create(*v1.Job) (*v1.Job, error) Update(*v1.Job) (*v1.Job, error) UpdateStatus(*v1.Job) (*v1.Job, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1.Job, error) List(namespace string, opts metav1.ListOptions) (*v1.JobList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.Job, err error) }
type JobController ¶
type JobController interface { generic.ControllerMeta JobClient OnChange(ctx context.Context, name string, sync JobHandler) OnRemove(ctx context.Context, name string, sync JobHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() JobCache }
func NewJobController ¶
func NewJobController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) JobController
type JobGeneratingHandler ¶
Click to show internal directories.
Click to hide internal directories.