Documentation ¶
Index ¶
- func FromBlockDeviceHandlerToHandler(sync BlockDeviceHandler) generic.Handler
- func RegisterBlockDeviceGeneratingHandler(ctx context.Context, controller BlockDeviceController, apply apply.Apply, ...)
- func RegisterBlockDeviceStatusHandler(ctx context.Context, controller BlockDeviceController, ...)
- func UpdateBlockDeviceDeepCopyOnChange(client BlockDeviceClient, obj *v1beta1.BlockDevice, ...) (*v1beta1.BlockDevice, error)
- type BlockDeviceCache
- type BlockDeviceClient
- type BlockDeviceController
- type BlockDeviceGeneratingHandler
- type BlockDeviceHandler
- type BlockDeviceIndexer
- type BlockDeviceStatusHandler
- type Interface
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromBlockDeviceHandlerToHandler ¶
func FromBlockDeviceHandlerToHandler(sync BlockDeviceHandler) generic.Handler
func RegisterBlockDeviceGeneratingHandler ¶
func RegisterBlockDeviceGeneratingHandler(ctx context.Context, controller BlockDeviceController, apply apply.Apply, condition condition.Cond, name string, handler BlockDeviceGeneratingHandler, opts *generic.GeneratingHandlerOptions)
func RegisterBlockDeviceStatusHandler ¶
func RegisterBlockDeviceStatusHandler(ctx context.Context, controller BlockDeviceController, condition condition.Cond, name string, handler BlockDeviceStatusHandler)
func UpdateBlockDeviceDeepCopyOnChange ¶
func UpdateBlockDeviceDeepCopyOnChange(client BlockDeviceClient, obj *v1beta1.BlockDevice, handler func(obj *v1beta1.BlockDevice) (*v1beta1.BlockDevice, error)) (*v1beta1.BlockDevice, error)
Types ¶
type BlockDeviceCache ¶
type BlockDeviceCache interface { Get(namespace, name string) (*v1beta1.BlockDevice, error) List(namespace string, selector labels.Selector) ([]*v1beta1.BlockDevice, error) AddIndexer(indexName string, indexer BlockDeviceIndexer) GetByIndex(indexName, key string) ([]*v1beta1.BlockDevice, error) }
type BlockDeviceClient ¶
type BlockDeviceClient interface { Create(*v1beta1.BlockDevice) (*v1beta1.BlockDevice, error) Update(*v1beta1.BlockDevice) (*v1beta1.BlockDevice, error) UpdateStatus(*v1beta1.BlockDevice) (*v1beta1.BlockDevice, error) Delete(namespace, name string, options *metav1.DeleteOptions) error Get(namespace, name string, options metav1.GetOptions) (*v1beta1.BlockDevice, error) List(namespace string, opts metav1.ListOptions) (*v1beta1.BlockDeviceList, error) Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error) Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.BlockDevice, err error) }
type BlockDeviceController ¶
type BlockDeviceController interface { generic.ControllerMeta BlockDeviceClient OnChange(ctx context.Context, name string, sync BlockDeviceHandler) OnRemove(ctx context.Context, name string, sync BlockDeviceHandler) Enqueue(namespace, name string) EnqueueAfter(namespace, name string, duration time.Duration) Cache() BlockDeviceCache }
func NewBlockDeviceController ¶
func NewBlockDeviceController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) BlockDeviceController
type BlockDeviceGeneratingHandler ¶
type BlockDeviceGeneratingHandler func(obj *v1beta1.BlockDevice, status v1beta1.BlockDeviceStatus) ([]runtime.Object, v1beta1.BlockDeviceStatus, error)
type BlockDeviceHandler ¶
type BlockDeviceHandler func(string, *v1beta1.BlockDevice) (*v1beta1.BlockDevice, error)
type BlockDeviceIndexer ¶
type BlockDeviceIndexer func(obj *v1beta1.BlockDevice) ([]string, error)
type BlockDeviceStatusHandler ¶
type BlockDeviceStatusHandler func(obj *v1beta1.BlockDevice, status v1beta1.BlockDeviceStatus) (v1beta1.BlockDeviceStatus, error)
type Interface ¶
type Interface interface {
BlockDevice() BlockDeviceController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
Click to show internal directories.
Click to hide internal directories.