v1alpha1

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromCatalogHandlerToHandler

func FromCatalogHandlerToHandler(sync CatalogHandler) generic.Handler

func FromDeviceTemplateHandlerToHandler

func FromDeviceTemplateHandlerToHandler(sync DeviceTemplateHandler) generic.Handler

func FromDeviceTemplateRevisionHandlerToHandler

func FromDeviceTemplateRevisionHandlerToHandler(sync DeviceTemplateRevisionHandler) generic.Handler

func FromSettingHandlerToHandler

func FromSettingHandlerToHandler(sync SettingHandler) generic.Handler

func RegisterCatalogGeneratingHandler

func RegisterCatalogGeneratingHandler(ctx context.Context, controller CatalogController, apply apply.Apply,
	condition condition.Cond, name string, handler CatalogGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterCatalogStatusHandler

func RegisterCatalogStatusHandler(ctx context.Context, controller CatalogController, condition condition.Cond, name string, handler CatalogStatusHandler)

func RegisterDeviceTemplateGeneratingHandler

func RegisterDeviceTemplateGeneratingHandler(ctx context.Context, controller DeviceTemplateController, apply apply.Apply,
	condition condition.Cond, name string, handler DeviceTemplateGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterDeviceTemplateRevisionStatusHandler

func RegisterDeviceTemplateRevisionStatusHandler(ctx context.Context, controller DeviceTemplateRevisionController, condition condition.Cond, name string, handler DeviceTemplateRevisionStatusHandler)

func RegisterDeviceTemplateStatusHandler

func RegisterDeviceTemplateStatusHandler(ctx context.Context, controller DeviceTemplateController, condition condition.Cond, name string, handler DeviceTemplateStatusHandler)

func UpdateCatalogDeepCopyOnChange

func UpdateCatalogDeepCopyOnChange(client CatalogClient, obj *v1alpha1.Catalog, handler func(obj *v1alpha1.Catalog) (*v1alpha1.Catalog, error)) (*v1alpha1.Catalog, error)

func UpdateSettingDeepCopyOnChange

func UpdateSettingDeepCopyOnChange(client SettingClient, obj *v1alpha1.Setting, handler func(obj *v1alpha1.Setting) (*v1alpha1.Setting, error)) (*v1alpha1.Setting, error)

Types

type CatalogCache

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

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

type CatalogClient

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

type CatalogController

type CatalogController interface {
	generic.ControllerMeta
	CatalogClient

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

	Cache() CatalogCache
}

func NewCatalogController

func NewCatalogController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) CatalogController

type CatalogGeneratingHandler

type CatalogGeneratingHandler func(obj *v1alpha1.Catalog, status v1alpha1.CatalogStatus) ([]runtime.Object, v1alpha1.CatalogStatus, error)

type CatalogHandler

type CatalogHandler func(string, *v1alpha1.Catalog) (*v1alpha1.Catalog, error)

type CatalogIndexer

type CatalogIndexer func(obj *v1alpha1.Catalog) ([]string, error)

type CatalogStatusHandler

type CatalogStatusHandler func(obj *v1alpha1.Catalog, status v1alpha1.CatalogStatus) (v1alpha1.CatalogStatus, error)

type DeviceTemplateCache

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

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

type DeviceTemplateClient

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

type DeviceTemplateController

type DeviceTemplateController interface {
	generic.ControllerMeta
	DeviceTemplateClient

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

	Cache() DeviceTemplateCache
}

func NewDeviceTemplateController

func NewDeviceTemplateController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) DeviceTemplateController

type DeviceTemplateHandler

type DeviceTemplateHandler func(string, *v1alpha1.DeviceTemplate) (*v1alpha1.DeviceTemplate, error)

type DeviceTemplateIndexer

type DeviceTemplateIndexer func(obj *v1alpha1.DeviceTemplate) ([]string, error)

type DeviceTemplateRevisionCache

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

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

type DeviceTemplateRevisionClient

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

type DeviceTemplateRevisionController

type DeviceTemplateRevisionController interface {
	generic.ControllerMeta
	DeviceTemplateRevisionClient

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

	Cache() DeviceTemplateRevisionCache
}

func NewDeviceTemplateRevisionController

func NewDeviceTemplateRevisionController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) DeviceTemplateRevisionController

type DeviceTemplateRevisionIndexer

type DeviceTemplateRevisionIndexer func(obj *v1alpha1.DeviceTemplateRevision) ([]string, error)

type Interface

type Interface interface {
	Catalog() CatalogController
	DeviceTemplate() DeviceTemplateController
	DeviceTemplateRevision() DeviceTemplateRevisionController
	Setting() SettingController
}

func New

func New(controllerFactory controller.SharedControllerFactory) Interface

type SettingCache

type SettingCache interface {
	Get(name string) (*v1alpha1.Setting, error)
	List(selector labels.Selector) ([]*v1alpha1.Setting, error)

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

type SettingClient

type SettingClient interface {
	Create(*v1alpha1.Setting) (*v1alpha1.Setting, error)
	Update(*v1alpha1.Setting) (*v1alpha1.Setting, error)

	Delete(name string, options *metav1.DeleteOptions) error
	Get(name string, options metav1.GetOptions) (*v1alpha1.Setting, error)
	List(opts metav1.ListOptions) (*v1alpha1.SettingList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Setting, err error)
}

type SettingController

type SettingController interface {
	generic.ControllerMeta
	SettingClient

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

	Cache() SettingCache
}

func NewSettingController

func NewSettingController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) SettingController

type SettingHandler

type SettingHandler func(string, *v1alpha1.Setting) (*v1alpha1.Setting, error)

type SettingIndexer

type SettingIndexer func(obj *v1alpha1.Setting) ([]string, error)

Jump to

Keyboard shortcuts

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