Documentation ¶
Index ¶
- func FromStorageClassHandlerToHandler(sync StorageClassHandler) generic.Handler
- func UpdateStorageClassDeepCopyOnChange(client StorageClassClient, obj *v1.StorageClass, ...) (*v1.StorageClass, error)
- type Interface
- type StorageClassCache
- type StorageClassClient
- type StorageClassController
- type StorageClassHandler
- type StorageClassIndexer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromStorageClassHandlerToHandler ¶
func FromStorageClassHandlerToHandler(sync StorageClassHandler) generic.Handler
func UpdateStorageClassDeepCopyOnChange ¶
func UpdateStorageClassDeepCopyOnChange(client StorageClassClient, obj *v1.StorageClass, handler func(obj *v1.StorageClass) (*v1.StorageClass, error)) (*v1.StorageClass, error)
Types ¶
type Interface ¶
type Interface interface {
StorageClass() StorageClassController
}
func New ¶
func New(controllerFactory controller.SharedControllerFactory) Interface
type StorageClassCache ¶
type StorageClassCache interface { Get(name string) (*v1.StorageClass, error) List(selector labels.Selector) ([]*v1.StorageClass, error) AddIndexer(indexName string, indexer StorageClassIndexer) GetByIndex(indexName, key string) ([]*v1.StorageClass, error) }
type StorageClassClient ¶
type StorageClassClient interface { Create(*v1.StorageClass) (*v1.StorageClass, error) Update(*v1.StorageClass) (*v1.StorageClass, error) Delete(name string, options *metav1.DeleteOptions) error Get(name string, options metav1.GetOptions) (*v1.StorageClass, error) List(opts metav1.ListOptions) (*v1.StorageClassList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1.StorageClass, err error) }
type StorageClassController ¶
type StorageClassController interface { generic.ControllerMeta StorageClassClient OnChange(ctx context.Context, name string, sync StorageClassHandler) OnRemove(ctx context.Context, name string, sync StorageClassHandler) Enqueue(name string) EnqueueAfter(name string, duration time.Duration) Cache() StorageClassCache }
func NewStorageClassController ¶
func NewStorageClassController(gvk schema.GroupVersionKind, resource string, namespaced bool, controller controller.SharedControllerFactory) StorageClassController
type StorageClassHandler ¶
type StorageClassHandler func(string, *v1.StorageClass) (*v1.StorageClass, error)
type StorageClassIndexer ¶
type StorageClassIndexer func(obj *v1.StorageClass) ([]string, error)
Click to show internal directories.
Click to hide internal directories.