v1alpha1

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromBuildHandlerToHandler

func FromBuildHandlerToHandler(sync BuildHandler) generic.Handler

Types

type BuildCache

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

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

type BuildClient

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

type BuildController

type BuildController interface {
	BuildClient

	OnChange(ctx context.Context, name string, sync BuildHandler)
	OnRemove(ctx context.Context, name string, sync BuildHandler)
	Enqueue(namespace, name string)

	Cache() BuildCache

	Informer() cache.SharedIndexInformer
	GroupVersionKind() schema.GroupVersionKind

	AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
	AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
	Updater() generic.Updater
}

func NewBuildController

func NewBuildController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.BuildsGetter, informer informers.BuildInformer) BuildController

type BuildHandler

type BuildHandler func(string, *v1alpha1.Build) (*v1alpha1.Build, error)

func UpdateBuildOnChange

func UpdateBuildOnChange(updater generic.Updater, handler BuildHandler) BuildHandler

type BuildIndexer

type BuildIndexer func(obj *v1alpha1.Build) ([]string, error)

type Interface

type Interface interface {
	Build() BuildController
}

func New

func New(controllerManager *generic.ControllerManager, client clientset.BuildV1alpha1Interface,
	informers informers.Interface) Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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