v1

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2020 License: Apache-2.0 Imports: 16 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromClusterRoleBindingHandlerToHandler

func FromClusterRoleBindingHandlerToHandler(sync ClusterRoleBindingHandler) generic.Handler

func FromClusterRoleHandlerToHandler

func FromClusterRoleHandlerToHandler(sync ClusterRoleHandler) generic.Handler

func FromRoleBindingHandlerToHandler

func FromRoleBindingHandlerToHandler(sync RoleBindingHandler) generic.Handler

func FromRoleHandlerToHandler

func FromRoleHandlerToHandler(sync RoleHandler) generic.Handler

func UpdateClusterRoleBindingDeepCopyOnChange added in v0.4.0

func UpdateClusterRoleBindingDeepCopyOnChange(client ClusterRoleBindingClient, obj *v1.ClusterRoleBinding, handler func(obj *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)) (*v1.ClusterRoleBinding, error)

func UpdateClusterRoleDeepCopyOnChange added in v0.4.0

func UpdateClusterRoleDeepCopyOnChange(client ClusterRoleClient, obj *v1.ClusterRole, handler func(obj *v1.ClusterRole) (*v1.ClusterRole, error)) (*v1.ClusterRole, error)

func UpdateRoleBindingDeepCopyOnChange added in v0.4.0

func UpdateRoleBindingDeepCopyOnChange(client RoleBindingClient, obj *v1.RoleBinding, handler func(obj *v1.RoleBinding) (*v1.RoleBinding, error)) (*v1.RoleBinding, error)

func UpdateRoleDeepCopyOnChange added in v0.4.0

func UpdateRoleDeepCopyOnChange(client RoleClient, obj *v1.Role, handler func(obj *v1.Role) (*v1.Role, error)) (*v1.Role, error)

Types

type ClusterRoleBindingCache

type ClusterRoleBindingCache interface {
	Get(name string) (*v1.ClusterRoleBinding, error)
	List(selector labels.Selector) ([]*v1.ClusterRoleBinding, error)

	AddIndexer(indexName string, indexer ClusterRoleBindingIndexer)
	GetByIndex(indexName, key string) ([]*v1.ClusterRoleBinding, error)
}

type ClusterRoleBindingClient

type ClusterRoleBindingClient interface {
	Create(*v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
	Update(*v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)

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

type ClusterRoleBindingController

type ClusterRoleBindingController interface {
	generic.ControllerMeta
	ClusterRoleBindingClient

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

	Cache() ClusterRoleBindingCache
}

type ClusterRoleBindingHandler

type ClusterRoleBindingHandler func(string, *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)

type ClusterRoleBindingIndexer

type ClusterRoleBindingIndexer func(obj *v1.ClusterRoleBinding) ([]string, error)

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
}

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
	ClusterRoleBinding() ClusterRoleBindingController
	Role() RoleController
	RoleBinding() RoleBindingController
}

func New

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

type RoleBindingCache

type RoleBindingCache interface {
	Get(namespace, name string) (*v1.RoleBinding, error)
	List(namespace string, selector labels.Selector) ([]*v1.RoleBinding, error)

	AddIndexer(indexName string, indexer RoleBindingIndexer)
	GetByIndex(indexName, key string) ([]*v1.RoleBinding, error)
}

type RoleBindingClient

type RoleBindingClient interface {
	Create(*v1.RoleBinding) (*v1.RoleBinding, error)
	Update(*v1.RoleBinding) (*v1.RoleBinding, error)

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

type RoleBindingController

type RoleBindingController interface {
	generic.ControllerMeta
	RoleBindingClient

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

	Cache() RoleBindingCache
}

type RoleBindingHandler

type RoleBindingHandler func(string, *v1.RoleBinding) (*v1.RoleBinding, error)

type RoleBindingIndexer

type RoleBindingIndexer func(obj *v1.RoleBinding) ([]string, error)

type RoleCache

type RoleCache interface {
	Get(namespace, name string) (*v1.Role, error)
	List(namespace string, selector labels.Selector) ([]*v1.Role, error)

	AddIndexer(indexName string, indexer RoleIndexer)
	GetByIndex(indexName, key string) ([]*v1.Role, error)
}

type RoleClient

type RoleClient interface {
	Create(*v1.Role) (*v1.Role, error)
	Update(*v1.Role) (*v1.Role, error)

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

type RoleController

type RoleController interface {
	generic.ControllerMeta
	RoleClient

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

	Cache() RoleCache
}

func NewRoleController

func NewRoleController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.RolesGetter, informer informers.RoleInformer) RoleController

type RoleHandler

type RoleHandler func(string, *v1.Role) (*v1.Role, error)

type RoleIndexer

type RoleIndexer func(obj *v1.Role) ([]string, error)

Jump to

Keyboard shortcuts

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