...

Package fake

import "k8s.io/client-go/kubernetes/typed/rbac/v1/fake"
Overview
Index

Overview ▾

Package fake has the automatically generated clients.

Index ▾

type FakeClusterRoleBindings
    func (c *FakeClusterRoleBindings) Apply(ctx context.Context, clusterRoleBinding *rbacv1.ClusterRoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRoleBinding, err error)
    func (c *FakeClusterRoleBindings) Create(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.CreateOptions) (result *v1.ClusterRoleBinding, err error)
    func (c *FakeClusterRoleBindings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
    func (c *FakeClusterRoleBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
    func (c *FakeClusterRoleBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRoleBinding, err error)
    func (c *FakeClusterRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleBindingList, err error)
    func (c *FakeClusterRoleBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleBinding, err error)
    func (c *FakeClusterRoleBindings) Update(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.UpdateOptions) (result *v1.ClusterRoleBinding, err error)
    func (c *FakeClusterRoleBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
type FakeClusterRoles
    func (c *FakeClusterRoles) Apply(ctx context.Context, clusterRole *rbacv1.ClusterRoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRole, err error)
    func (c *FakeClusterRoles) Create(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.CreateOptions) (result *v1.ClusterRole, err error)
    func (c *FakeClusterRoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
    func (c *FakeClusterRoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
    func (c *FakeClusterRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRole, err error)
    func (c *FakeClusterRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleList, err error)
    func (c *FakeClusterRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRole, err error)
    func (c *FakeClusterRoles) Update(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.UpdateOptions) (result *v1.ClusterRole, err error)
    func (c *FakeClusterRoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
type FakeRbacV1
    func (c *FakeRbacV1) ClusterRoleBindings() v1.ClusterRoleBindingInterface
    func (c *FakeRbacV1) ClusterRoles() v1.ClusterRoleInterface
    func (c *FakeRbacV1) RESTClient() rest.Interface
    func (c *FakeRbacV1) RoleBindings(namespace string) v1.RoleBindingInterface
    func (c *FakeRbacV1) Roles(namespace string) v1.RoleInterface
type FakeRoleBindings
    func (c *FakeRoleBindings) Apply(ctx context.Context, roleBinding *rbacv1.RoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RoleBinding, err error)
    func (c *FakeRoleBindings) Create(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.CreateOptions) (result *v1.RoleBinding, err error)
    func (c *FakeRoleBindings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
    func (c *FakeRoleBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
    func (c *FakeRoleBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RoleBinding, err error)
    func (c *FakeRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleBindingList, err error)
    func (c *FakeRoleBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RoleBinding, err error)
    func (c *FakeRoleBindings) Update(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.UpdateOptions) (result *v1.RoleBinding, err error)
    func (c *FakeRoleBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)
type FakeRoles
    func (c *FakeRoles) Apply(ctx context.Context, role *rbacv1.RoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Role, err error)
    func (c *FakeRoles) Create(ctx context.Context, role *v1.Role, opts metav1.CreateOptions) (result *v1.Role, err error)
    func (c *FakeRoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
    func (c *FakeRoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error
    func (c *FakeRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Role, err error)
    func (c *FakeRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleList, err error)
    func (c *FakeRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Role, err error)
    func (c *FakeRoles) Update(ctx context.Context, role *v1.Role, opts metav1.UpdateOptions) (result *v1.Role, err error)
    func (c *FakeRoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Package files

doc.go fake_clusterrole.go fake_clusterrolebinding.go fake_rbac_client.go fake_role.go fake_rolebinding.go

type FakeClusterRoleBindings

FakeClusterRoleBindings implements ClusterRoleBindingInterface

type FakeClusterRoleBindings struct {
    Fake *FakeRbacV1
}

func (*FakeClusterRoleBindings) Apply

func (c *FakeClusterRoleBindings) Apply(ctx context.Context, clusterRoleBinding *rbacv1.ClusterRoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRoleBinding, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied clusterRoleBinding.

func (*FakeClusterRoleBindings) Create

func (c *FakeClusterRoleBindings) Create(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.CreateOptions) (result *v1.ClusterRoleBinding, err error)

Create takes the representation of a clusterRoleBinding and creates it. Returns the server's representation of the clusterRoleBinding, and an error, if there is any.

func (*FakeClusterRoleBindings) Delete

func (c *FakeClusterRoleBindings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete takes name of the clusterRoleBinding and deletes it. Returns an error if one occurs.

func (*FakeClusterRoleBindings) DeleteCollection

func (c *FakeClusterRoleBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterRoleBindings) Get

func (c *FakeClusterRoleBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRoleBinding, err error)

Get takes name of the clusterRoleBinding, and returns the corresponding clusterRoleBinding object, and an error if there is any.

func (*FakeClusterRoleBindings) List

func (c *FakeClusterRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleBindingList, err error)

List takes label and field selectors, and returns the list of ClusterRoleBindings that match those selectors.

func (*FakeClusterRoleBindings) Patch

func (c *FakeClusterRoleBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRoleBinding, err error)

Patch applies the patch and returns the patched clusterRoleBinding.

func (*FakeClusterRoleBindings) Update

func (c *FakeClusterRoleBindings) Update(ctx context.Context, clusterRoleBinding *v1.ClusterRoleBinding, opts metav1.UpdateOptions) (result *v1.ClusterRoleBinding, err error)

Update takes the representation of a clusterRoleBinding and updates it. Returns the server's representation of the clusterRoleBinding, and an error, if there is any.

func (*FakeClusterRoleBindings) Watch

func (c *FakeClusterRoleBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested clusterRoleBindings.

type FakeClusterRoles

FakeClusterRoles implements ClusterRoleInterface

type FakeClusterRoles struct {
    Fake *FakeRbacV1
}

func (*FakeClusterRoles) Apply

func (c *FakeClusterRoles) Apply(ctx context.Context, clusterRole *rbacv1.ClusterRoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.ClusterRole, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied clusterRole.

func (*FakeClusterRoles) Create

func (c *FakeClusterRoles) Create(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.CreateOptions) (result *v1.ClusterRole, err error)

Create takes the representation of a clusterRole and creates it. Returns the server's representation of the clusterRole, and an error, if there is any.

func (*FakeClusterRoles) Delete

func (c *FakeClusterRoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete takes name of the clusterRole and deletes it. Returns an error if one occurs.

func (*FakeClusterRoles) DeleteCollection

func (c *FakeClusterRoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterRoles) Get

func (c *FakeClusterRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ClusterRole, err error)

Get takes name of the clusterRole, and returns the corresponding clusterRole object, and an error if there is any.

func (*FakeClusterRoles) List

func (c *FakeClusterRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ClusterRoleList, err error)

List takes label and field selectors, and returns the list of ClusterRoles that match those selectors.

func (*FakeClusterRoles) Patch

func (c *FakeClusterRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.ClusterRole, err error)

Patch applies the patch and returns the patched clusterRole.

func (*FakeClusterRoles) Update

func (c *FakeClusterRoles) Update(ctx context.Context, clusterRole *v1.ClusterRole, opts metav1.UpdateOptions) (result *v1.ClusterRole, err error)

Update takes the representation of a clusterRole and updates it. Returns the server's representation of the clusterRole, and an error, if there is any.

func (*FakeClusterRoles) Watch

func (c *FakeClusterRoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested clusterRoles.

type FakeRbacV1

type FakeRbacV1 struct {
    *testing.Fake
}

func (*FakeRbacV1) ClusterRoleBindings

func (c *FakeRbacV1) ClusterRoleBindings() v1.ClusterRoleBindingInterface

func (*FakeRbacV1) ClusterRoles

func (c *FakeRbacV1) ClusterRoles() v1.ClusterRoleInterface

func (*FakeRbacV1) RESTClient

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

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeRbacV1) RoleBindings

func (c *FakeRbacV1) RoleBindings(namespace string) v1.RoleBindingInterface

func (*FakeRbacV1) Roles

func (c *FakeRbacV1) Roles(namespace string) v1.RoleInterface

type FakeRoleBindings

FakeRoleBindings implements RoleBindingInterface

type FakeRoleBindings struct {
    Fake *FakeRbacV1
    // contains filtered or unexported fields
}

func (*FakeRoleBindings) Apply

func (c *FakeRoleBindings) Apply(ctx context.Context, roleBinding *rbacv1.RoleBindingApplyConfiguration, opts metav1.ApplyOptions) (result *v1.RoleBinding, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied roleBinding.

func (*FakeRoleBindings) Create

func (c *FakeRoleBindings) Create(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.CreateOptions) (result *v1.RoleBinding, err error)

Create takes the representation of a roleBinding and creates it. Returns the server's representation of the roleBinding, and an error, if there is any.

func (*FakeRoleBindings) Delete

func (c *FakeRoleBindings) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete takes name of the roleBinding and deletes it. Returns an error if one occurs.

func (*FakeRoleBindings) DeleteCollection

func (c *FakeRoleBindings) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRoleBindings) Get

func (c *FakeRoleBindings) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.RoleBinding, err error)

Get takes name of the roleBinding, and returns the corresponding roleBinding object, and an error if there is any.

func (*FakeRoleBindings) List

func (c *FakeRoleBindings) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleBindingList, err error)

List takes label and field selectors, and returns the list of RoleBindings that match those selectors.

func (*FakeRoleBindings) Patch

func (c *FakeRoleBindings) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.RoleBinding, err error)

Patch applies the patch and returns the patched roleBinding.

func (*FakeRoleBindings) Update

func (c *FakeRoleBindings) Update(ctx context.Context, roleBinding *v1.RoleBinding, opts metav1.UpdateOptions) (result *v1.RoleBinding, err error)

Update takes the representation of a roleBinding and updates it. Returns the server's representation of the roleBinding, and an error, if there is any.

func (*FakeRoleBindings) Watch

func (c *FakeRoleBindings) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested roleBindings.

type FakeRoles

FakeRoles implements RoleInterface

type FakeRoles struct {
    Fake *FakeRbacV1
    // contains filtered or unexported fields
}

func (*FakeRoles) Apply

func (c *FakeRoles) Apply(ctx context.Context, role *rbacv1.RoleApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Role, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied role.

func (*FakeRoles) Create

func (c *FakeRoles) Create(ctx context.Context, role *v1.Role, opts metav1.CreateOptions) (result *v1.Role, err error)

Create takes the representation of a role and creates it. Returns the server's representation of the role, and an error, if there is any.

func (*FakeRoles) Delete

func (c *FakeRoles) Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error

Delete takes name of the role and deletes it. Returns an error if one occurs.

func (*FakeRoles) DeleteCollection

func (c *FakeRoles) DeleteCollection(ctx context.Context, opts metav1.DeleteOptions, listOpts metav1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRoles) Get

func (c *FakeRoles) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.Role, err error)

Get takes name of the role, and returns the corresponding role object, and an error if there is any.

func (*FakeRoles) List

func (c *FakeRoles) List(ctx context.Context, opts metav1.ListOptions) (result *v1.RoleList, err error)

List takes label and field selectors, and returns the list of Roles that match those selectors.

func (*FakeRoles) Patch

func (c *FakeRoles) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Role, err error)

Patch applies the patch and returns the patched role.

func (*FakeRoles) Update

func (c *FakeRoles) Update(ctx context.Context, role *v1.Role, opts metav1.UpdateOptions) (result *v1.Role, err error)

Update takes the representation of a role and updates it. Returns the server's representation of the role, and an error, if there is any.

func (*FakeRoles) Watch

func (c *FakeRoles) Watch(ctx context.Context, opts metav1.ListOptions) (watch.Interface, error)

Watch returns a watch.Interface that watches the requested roles.