v1

package
v0.0.0-...-810f185 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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 (
	ClusterRoleGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "ClusterRole",
	}
	ClusterRoleResource = metav1.APIResource{
		Name:         "clusterroles",
		SingularName: "clusterrole",
		Namespaced:   false,
		Kind:         ClusterRoleGroupVersionKind.Kind,
	}
)
View Source
var (
	RoleBindingGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "RoleBinding",
	}
	RoleBindingResource = metav1.APIResource{
		Name:         "rolebindings",
		SingularName: "rolebinding",
		Namespaced:   true,

		Kind: RoleBindingGroupVersionKind.Kind,
	}
)
View Source
var (
	RoleGroupVersionKind = schema.GroupVersionKind{
		Version: Version,
		Group:   GroupName,
		Kind:    "Role",
	}
	RoleResource = metav1.APIResource{
		Name:         "roles",
		SingularName: "role",
		Namespaced:   true,

		Kind: RoleGroupVersionKind.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 Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns a Group qualified GroupKind

func RegisterDeepCopies deprecated

func RegisterDeepCopies(scheme *runtime.Scheme) error

RegisterDeepCopies adds deep-copy functions to the given scheme. Public to allow building arbitrary schemes.

Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Client

type Client struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Client) ClusterRoleBindings

func (c *Client) ClusterRoleBindings(namespace string) ClusterRoleBindingInterface

func (*Client) ClusterRoles

func (c *Client) ClusterRoles(namespace string) ClusterRoleInterface

func (*Client) RESTClient

func (c *Client) RESTClient() rest.Interface

func (*Client) RoleBindings

func (c *Client) RoleBindings(namespace string) RoleBindingInterface

func (*Client) Roles

func (c *Client) Roles(namespace string) RoleInterface

func (*Client) Start

func (c *Client) Start(ctx context.Context, threadiness int) error

func (*Client) Sync

func (c *Client) Sync(ctx context.Context) error

type ClusterRoleBindingController

type ClusterRoleBindingController interface {
	Informer() cache.SharedIndexInformer
	Lister() ClusterRoleBindingLister
	AddHandler(name string, handler ClusterRoleBindingHandlerFunc)
	AddClusterScopedHandler(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) error

func NewClusterRoleBindingLifecycleAdapter

func NewClusterRoleBindingLifecycleAdapter(name string, clusterScoped bool, client ClusterRoleBindingInterface, l ClusterRoleBindingLifecycle) ClusterRoleBindingHandlerFunc

type ClusterRoleBindingInterface

type ClusterRoleBindingInterface interface {
	ObjectClient() *clientbase.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(name string, sync ClusterRoleBindingHandlerFunc)
	AddLifecycle(name string, lifecycle ClusterRoleBindingLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync ClusterRoleBindingHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle ClusterRoleBindingLifecycle)
}

type ClusterRoleBindingLifecycle

type ClusterRoleBindingLifecycle interface {
	Create(obj *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
	Remove(obj *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
	Updated(obj *v1.ClusterRoleBinding) (*v1.ClusterRoleBinding, error)
}

type ClusterRoleBindingList

type ClusterRoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1.ClusterRoleBinding
}

func (*ClusterRoleBindingList) DeepCopy

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
}

type ClusterRoleController

type ClusterRoleController interface {
	Informer() cache.SharedIndexInformer
	Lister() ClusterRoleLister
	AddHandler(name string, handler ClusterRoleHandlerFunc)
	AddClusterScopedHandler(name, clusterName string, handler ClusterRoleHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type ClusterRoleHandlerFunc

type ClusterRoleHandlerFunc func(key string, obj *v1.ClusterRole) error

func NewClusterRoleLifecycleAdapter

func NewClusterRoleLifecycleAdapter(name string, clusterScoped bool, client ClusterRoleInterface, l ClusterRoleLifecycle) ClusterRoleHandlerFunc

type ClusterRoleInterface

type ClusterRoleInterface interface {
	ObjectClient() *clientbase.ObjectClient
	Create(*v1.ClusterRole) (*v1.ClusterRole, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.ClusterRole, error)
	Get(name string, opts metav1.GetOptions) (*v1.ClusterRole, error)
	Update(*v1.ClusterRole) (*v1.ClusterRole, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*ClusterRoleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() ClusterRoleController
	AddHandler(name string, sync ClusterRoleHandlerFunc)
	AddLifecycle(name string, lifecycle ClusterRoleLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync ClusterRoleHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle ClusterRoleLifecycle)
}

type ClusterRoleLifecycle

type ClusterRoleLifecycle interface {
	Create(obj *v1.ClusterRole) (*v1.ClusterRole, error)
	Remove(obj *v1.ClusterRole) (*v1.ClusterRole, error)
	Updated(obj *v1.ClusterRole) (*v1.ClusterRole, error)
}

type ClusterRoleList

type ClusterRoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1.ClusterRole
}

func (*ClusterRoleList) DeepCopy

func (in *ClusterRoleList) DeepCopy() *ClusterRoleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList.

func (*ClusterRoleList) DeepCopyInto

func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ClusterRoleList) DeepCopyObject

func (in *ClusterRoleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ClusterRoleLister

type ClusterRoleLister interface {
	List(namespace string, selector labels.Selector) (ret []*v1.ClusterRole, err error)
	Get(namespace, name string) (*v1.ClusterRole, error)
}

type ClusterRolesGetter

type ClusterRolesGetter interface {
	ClusterRoles(namespace string) ClusterRoleInterface
}

type RoleBindingController

type RoleBindingController interface {
	Informer() cache.SharedIndexInformer
	Lister() RoleBindingLister
	AddHandler(name string, handler RoleBindingHandlerFunc)
	AddClusterScopedHandler(name, clusterName string, handler RoleBindingHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type RoleBindingHandlerFunc

type RoleBindingHandlerFunc func(key string, obj *v1.RoleBinding) error

func NewRoleBindingLifecycleAdapter

func NewRoleBindingLifecycleAdapter(name string, clusterScoped bool, client RoleBindingInterface, l RoleBindingLifecycle) RoleBindingHandlerFunc

type RoleBindingInterface

type RoleBindingInterface interface {
	ObjectClient() *clientbase.ObjectClient
	Create(*v1.RoleBinding) (*v1.RoleBinding, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.RoleBinding, error)
	Get(name string, opts metav1.GetOptions) (*v1.RoleBinding, error)
	Update(*v1.RoleBinding) (*v1.RoleBinding, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*RoleBindingList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() RoleBindingController
	AddHandler(name string, sync RoleBindingHandlerFunc)
	AddLifecycle(name string, lifecycle RoleBindingLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync RoleBindingHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle RoleBindingLifecycle)
}

type RoleBindingLifecycle

type RoleBindingLifecycle interface {
	Create(obj *v1.RoleBinding) (*v1.RoleBinding, error)
	Remove(obj *v1.RoleBinding) (*v1.RoleBinding, error)
	Updated(obj *v1.RoleBinding) (*v1.RoleBinding, error)
}

type RoleBindingList

type RoleBindingList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1.RoleBinding
}

func (*RoleBindingList) DeepCopy

func (in *RoleBindingList) DeepCopy() *RoleBindingList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList.

func (*RoleBindingList) DeepCopyInto

func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RoleBindingList) DeepCopyObject

func (in *RoleBindingList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleBindingLister

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

type RoleBindingsGetter

type RoleBindingsGetter interface {
	RoleBindings(namespace string) RoleBindingInterface
}

type RoleController

type RoleController interface {
	Informer() cache.SharedIndexInformer
	Lister() RoleLister
	AddHandler(name string, handler RoleHandlerFunc)
	AddClusterScopedHandler(name, clusterName string, handler RoleHandlerFunc)
	Enqueue(namespace, name string)
	Sync(ctx context.Context) error
	Start(ctx context.Context, threadiness int) error
}

type RoleHandlerFunc

type RoleHandlerFunc func(key string, obj *v1.Role) error

func NewRoleLifecycleAdapter

func NewRoleLifecycleAdapter(name string, clusterScoped bool, client RoleInterface, l RoleLifecycle) RoleHandlerFunc

type RoleInterface

type RoleInterface interface {
	ObjectClient() *clientbase.ObjectClient
	Create(*v1.Role) (*v1.Role, error)
	GetNamespaced(namespace, name string, opts metav1.GetOptions) (*v1.Role, error)
	Get(name string, opts metav1.GetOptions) (*v1.Role, error)
	Update(*v1.Role) (*v1.Role, error)
	Delete(name string, options *metav1.DeleteOptions) error
	DeleteNamespaced(namespace, name string, options *metav1.DeleteOptions) error
	List(opts metav1.ListOptions) (*RoleList, error)
	Watch(opts metav1.ListOptions) (watch.Interface, error)
	DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
	Controller() RoleController
	AddHandler(name string, sync RoleHandlerFunc)
	AddLifecycle(name string, lifecycle RoleLifecycle)
	AddClusterScopedHandler(name, clusterName string, sync RoleHandlerFunc)
	AddClusterScopedLifecycle(name, clusterName string, lifecycle RoleLifecycle)
}

type RoleLifecycle

type RoleLifecycle interface {
	Create(obj *v1.Role) (*v1.Role, error)
	Remove(obj *v1.Role) (*v1.Role, error)
	Updated(obj *v1.Role) (*v1.Role, error)
}

type RoleList

type RoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []v1.Role
}

func (*RoleList) DeepCopy

func (in *RoleList) DeepCopy() *RoleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.

func (*RoleList) DeepCopyInto

func (in *RoleList) DeepCopyInto(out *RoleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RoleList) DeepCopyObject

func (in *RoleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleLister

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

type RolesGetter

type RolesGetter interface {
	Roles(namespace string) RoleInterface
}

Jump to

Keyboard shortcuts

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