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