Documentation
¶
Index ¶
- func FromGitJobHandlerToHandler(sync GitJobHandler) generic.Handler
- func RegisterGitJobGeneratingHandler(ctx context.Context, controller GitJobController, apply apply.Apply, ...)
- func RegisterGitJobStatusHandler(ctx context.Context, controller GitJobController, condition condition.Cond, ...)
- func UpdateGitJobDeepCopyOnChange(client GitJobClient, obj *v1.GitJob, ...) (*v1.GitJob, error)
- type GitJobCache
- type GitJobClient
- type GitJobController
- type GitJobGeneratingHandler
- type GitJobHandler
- type GitJobIndexer
- type GitJobStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromGitJobHandlerToHandler ¶
func FromGitJobHandlerToHandler(sync GitJobHandler) generic.Handler
func RegisterGitJobGeneratingHandler ¶
func RegisterGitJobGeneratingHandler(ctx context.Context, controller GitJobController, apply apply.Apply, condition condition.Cond, name string, handler GitJobGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterGitJobStatusHandler ¶
func RegisterGitJobStatusHandler(ctx context.Context, controller GitJobController, condition condition.Cond, name string, handler GitJobStatusHandler)
Types ¶
type GitJobCache ¶
type GitJobClient ¶
type GitJobClient interface {
Create(*v1.GitJob) (*v1.GitJob, error)
Update(*v1.GitJob) (*v1.GitJob, error)
UpdateStatus(*v1.GitJob) (*v1.GitJob, error)
Delete(namespace, name string, options *metav1.DeleteOptions) error
Get(namespace, name string, options metav1.GetOptions) (*v1.GitJob, error)
List(namespace string, opts metav1.ListOptions) (*v1.GitJobList, error)
Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.GitJob, err error)
}
type GitJobController ¶
type GitJobController interface {
generic.ControllerMeta
GitJobClient
OnChange(ctx context.Context, name string, sync GitJobHandler)
OnRemove(ctx context.Context, name string, sync GitJobHandler)
Enqueue(namespace, name string)
EnqueueAfter(namespace, name string, duration time.Duration)
Cache() GitJobCache
}
func NewGitJobController ¶
func NewGitJobController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) GitJobController
type GitJobGeneratingHandler ¶
type GitJobGeneratingHandler func(obj *v1.GitJob, status v1.GitJobStatus) ([]runtime.Object, v1.GitJobStatus, error)
type GitJobStatusHandler ¶
type GitJobStatusHandler func(obj *v1.GitJob, status v1.GitJobStatus) (v1.GitJobStatus, error)
type Interface ¶
type Interface interface {
GitJob() GitJobController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
Click to show internal directories.
Click to hide internal directories.