v1

package
v0.1.60 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

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)

func UpdateGitJobDeepCopyOnChange

func UpdateGitJobDeepCopyOnChange(client GitJobClient, obj *v1.GitJob, handler func(obj *v1.GitJob) (*v1.GitJob, error)) (*v1.GitJob, error)

Types

type GitJobCache

type GitJobCache interface {
	Get(namespace, name string) (*v1.GitJob, error)
	List(namespace string, selector labels.Selector) ([]*v1.GitJob, error)

	AddIndexer(indexName string, indexer GitJobIndexer)
	GetByIndex(indexName, key string) ([]*v1.GitJob, error)
}

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 GitJobHandler

type GitJobHandler func(string, *v1.GitJob) (*v1.GitJob, error)

type GitJobIndexer

type GitJobIndexer func(obj *v1.GitJob) ([]string, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL