v1alpha1

package
v0.0.0-...-2fee06a Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2020 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromImageBuildHandlerToHandler

func FromImageBuildHandlerToHandler(sync ImageBuildHandler) generic.Handler

func RegisterImageBuildGeneratingHandler

func RegisterImageBuildGeneratingHandler(ctx context.Context, controller ImageBuildController, apply apply.Apply,
	condition condition.Cond, name string, handler ImageBuildGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterImageBuildStatusHandler

func RegisterImageBuildStatusHandler(ctx context.Context, controller ImageBuildController, condition condition.Cond, name string, handler ImageBuildStatusHandler)

func UpdateImageBuildDeepCopyOnChange

func UpdateImageBuildDeepCopyOnChange(client ImageBuildClient, obj *v1alpha1.ImageBuild, handler func(obj *v1alpha1.ImageBuild) (*v1alpha1.ImageBuild, error)) (*v1alpha1.ImageBuild, error)

Types

type ImageBuildCache

type ImageBuildCache interface {
	Get(namespace, name string) (*v1alpha1.ImageBuild, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.ImageBuild, error)

	AddIndexer(indexName string, indexer ImageBuildIndexer)
	GetByIndex(indexName, key string) ([]*v1alpha1.ImageBuild, error)
}

type ImageBuildClient

type ImageBuildClient interface {
	Create(*v1alpha1.ImageBuild) (*v1alpha1.ImageBuild, error)
	Update(*v1alpha1.ImageBuild) (*v1alpha1.ImageBuild, error)
	UpdateStatus(*v1alpha1.ImageBuild) (*v1alpha1.ImageBuild, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1alpha1.ImageBuild, error)
	List(namespace string, opts metav1.ListOptions) (*v1alpha1.ImageBuildList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ImageBuild, err error)
}

type ImageBuildController

type ImageBuildController interface {
	generic.ControllerMeta
	ImageBuildClient

	OnChange(ctx context.Context, name string, sync ImageBuildHandler)
	OnRemove(ctx context.Context, name string, sync ImageBuildHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() ImageBuildCache
}

func NewImageBuildController

func NewImageBuildController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) ImageBuildController

type ImageBuildGeneratingHandler

type ImageBuildGeneratingHandler func(obj *v1alpha1.ImageBuild, status v1alpha1.BuildStatus) ([]runtime.Object, v1alpha1.BuildStatus, error)

type ImageBuildHandler

type ImageBuildHandler func(string, *v1alpha1.ImageBuild) (*v1alpha1.ImageBuild, error)

type ImageBuildIndexer

type ImageBuildIndexer func(obj *v1alpha1.ImageBuild) ([]string, error)

type ImageBuildStatusHandler

type ImageBuildStatusHandler func(obj *v1alpha1.ImageBuild, status v1alpha1.BuildStatus) (v1alpha1.BuildStatus, error)

type Interface

type Interface interface {
	ImageBuild() ImageBuildController
}

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