Documentation ¶
Index ¶
- Constants
- Variables
- func Factory(ctx context.Context, config rest.Config) (context.Context, controller.Starter, error)
- func Kind(kind string) schema.GroupKind
- func NewClusterRoleBinding(namespace, name string, obj v1.ClusterRoleBinding) *v1.ClusterRoleBinding
- func Resource(resource string) schema.GroupResource
- type Client
- type Clients
- type ClusterRoleBindingChangeHandlerFunc
- type ClusterRoleBindingClient
- type ClusterRoleBindingClientCache
- type ClusterRoleBindingController
- type ClusterRoleBindingHandlerFunc
- type ClusterRoleBindingIndexer
- type ClusterRoleBindingInterface
- type ClusterRoleBindingLifecycle
- type ClusterRoleBindingList
- type ClusterRoleBindingLister
- type ClusterRoleBindingsGetter
- type Interface
Constants ¶
View Source
const ( GroupName = "rbac.authorization.k8s.io" Version = "v1" )
Variables ¶
View Source
var ( ClusterRoleBindingGroupVersionKind = schema.GroupVersionKind{ Version: Version, Group: GroupName, Kind: "ClusterRoleBinding", } ClusterRoleBindingResource = metav1.APIResource{ Name: "clusterrolebindings", SingularName: "clusterrolebinding", Namespaced: false, Kind: ClusterRoleBindingGroupVersionKind.Kind, } )
View Source
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func NewClusterRoleBinding ¶
func NewClusterRoleBinding(namespace, name string, obj v1.ClusterRoleBinding) *v1.ClusterRoleBinding
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Client ¶
func (*Client) ClusterRoleBindings ¶
func (c *Client) ClusterRoleBindings(namespace string) ClusterRoleBindingInterface
func (*Client) RESTClient ¶
type Clients ¶
type Clients struct { Interface Interface ClusterRoleBinding ClusterRoleBindingClient }
func ClientsFrom ¶
func NewClientsFromInterface ¶
type ClusterRoleBindingChangeHandlerFunc ¶
type ClusterRoleBindingChangeHandlerFunc func(obj *v1.ClusterRoleBinding) (runtime.Object, error)
type ClusterRoleBindingClient ¶
type ClusterRoleBindingClient interface { Create(*v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) Get(namespace, name string, opts metav1.GetOptions) (*v1.ClusterRoleBinding, error) Update(*v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) Delete(namespace, name string, options *metav1.DeleteOptions) error List(namespace string, opts metav1.ListOptions) (*ClusterRoleBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) Cache() ClusterRoleBindingClientCache OnCreate(ctx context.Context, name string, sync ClusterRoleBindingChangeHandlerFunc) OnChange(ctx context.Context, name string, sync ClusterRoleBindingChangeHandlerFunc) OnRemove(ctx context.Context, name string, sync ClusterRoleBindingChangeHandlerFunc) Enqueue(namespace, name string) Generic() controller.GenericController ObjectClient() *objectclient.ObjectClient Interface() ClusterRoleBindingInterface }
type ClusterRoleBindingClientCache ¶
type ClusterRoleBindingClientCache interface { Get(namespace, name string) (*v1.ClusterRoleBinding, error) List(namespace string, selector labels.Selector) ([]*v1.ClusterRoleBinding, error) Index(name string, indexer ClusterRoleBindingIndexer) GetIndexed(name, key string) ([]*v1.ClusterRoleBinding, error) }
type ClusterRoleBindingController ¶
type ClusterRoleBindingController interface { Generic() controller.GenericController Informer() cache.SharedIndexInformer Lister() ClusterRoleBindingLister AddHandler(ctx context.Context, name string, handler ClusterRoleBindingHandlerFunc) AddClusterScopedHandler(ctx context.Context, name, clusterName string, handler ClusterRoleBindingHandlerFunc) Enqueue(namespace, name string) Sync(ctx context.Context) error Start(ctx context.Context, threadiness int) error }
type ClusterRoleBindingHandlerFunc ¶
type ClusterRoleBindingHandlerFunc func(key string, obj *v1.ClusterRoleBinding) (runtime.Object, error)
func NewClusterRoleBindingLifecycleAdapter ¶
func NewClusterRoleBindingLifecycleAdapter(name string, clusterScoped bool, client ClusterRoleBindingInterface, l ClusterRoleBindingLifecycle) ClusterRoleBindingHandlerFunc
type ClusterRoleBindingIndexer ¶
type ClusterRoleBindingIndexer func(obj *v1.ClusterRoleBinding) ([]string, error)
type ClusterRoleBindingInterface ¶
type ClusterRoleBindingInterface interface { ObjectClient() *objectclient.ObjectClient Create(*v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.ClusterRoleBinding, error) Get(name string, opts metav1.GetOptions) (*v1.ClusterRoleBinding, error) Update(*v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error) Delete(name string, options *metav1.DeleteOptions) error DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error List(opts metav1.ListOptions) (*ClusterRoleBindingList, error) Watch(opts metav1.ListOptions) (watch.Interface, error) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error Controller() ClusterRoleBindingController AddHandler(ctx context.Context, name string, sync ClusterRoleBindingHandlerFunc) AddLifecycle(ctx context.Context, name string, lifecycle ClusterRoleBindingLifecycle) AddClusterScopedHandler(ctx context.Context, name, clusterName string, sync ClusterRoleBindingHandlerFunc) AddClusterScopedLifecycle(ctx context.Context, name, clusterName string, lifecycle ClusterRoleBindingLifecycle) }
type ClusterRoleBindingLifecycle ¶
type ClusterRoleBindingLifecycle interface { Create(obj *v1.ClusterRoleBinding) (runtime.Object, error) Remove(obj *v1.ClusterRoleBinding) (runtime.Object, error) Updated(obj *v1.ClusterRoleBinding) (runtime.Object, error) }
type ClusterRoleBindingList ¶
type ClusterRoleBindingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []v1.ClusterRoleBinding }
func (*ClusterRoleBindingList) DeepCopy ¶
func (in *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList.
func (*ClusterRoleBindingList) DeepCopyInto ¶
func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterRoleBindingList) DeepCopyObject ¶
func (in *ClusterRoleBindingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterRoleBindingLister ¶
type ClusterRoleBindingLister interface { List(namespace string, selector labels.Selector) (ret []*v1.ClusterRoleBinding, err error) Get(namespace, name string) (*v1.ClusterRoleBinding, error) }
type ClusterRoleBindingsGetter ¶
type ClusterRoleBindingsGetter interface {
ClusterRoleBindings(namespace string) ClusterRoleBindingInterface
}
Click to show internal directories.
Click to hide internal directories.