client-go: k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake Index | Files

package fake

import "k8s.io/client-go/kubernetes/typed/rbac/v1alpha1/fake"

Package fake has the automatically generated clients.

Index

Package Files

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

type FakeClusterRoleBindings Uses

type FakeClusterRoleBindings struct {
    Fake *FakeRbacV1alpha1
}

FakeClusterRoleBindings implements ClusterRoleBindingInterface

func (*FakeClusterRoleBindings) Create Uses

func (c *FakeClusterRoleBindings) Create(clusterRoleBinding *v1alpha1.ClusterRoleBinding) (result *v1alpha1.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 Uses

func (c *FakeClusterRoleBindings) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterRoleBindings) DeleteCollection Uses

func (c *FakeClusterRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterRoleBindings) Get Uses

func (c *FakeClusterRoleBindings) Get(name string, options v1.GetOptions) (result *v1alpha1.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 Uses

func (c *FakeClusterRoleBindings) List(opts v1.ListOptions) (result *v1alpha1.ClusterRoleBindingList, err error)

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

func (*FakeClusterRoleBindings) Patch Uses

func (c *FakeClusterRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterRoleBinding, err error)

Patch applies the patch and returns the patched clusterRoleBinding.

func (*FakeClusterRoleBindings) Update Uses

func (c *FakeClusterRoleBindings) Update(clusterRoleBinding *v1alpha1.ClusterRoleBinding) (result *v1alpha1.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 Uses

func (c *FakeClusterRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeClusterRoles Uses

type FakeClusterRoles struct {
    Fake *FakeRbacV1alpha1
}

FakeClusterRoles implements ClusterRoleInterface

func (*FakeClusterRoles) Create Uses

func (c *FakeClusterRoles) Create(clusterRole *v1alpha1.ClusterRole) (result *v1alpha1.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 Uses

func (c *FakeClusterRoles) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterRoles) DeleteCollection Uses

func (c *FakeClusterRoles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeClusterRoles) Get Uses

func (c *FakeClusterRoles) Get(name string, options v1.GetOptions) (result *v1alpha1.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 Uses

func (c *FakeClusterRoles) List(opts v1.ListOptions) (result *v1alpha1.ClusterRoleList, err error)

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

func (*FakeClusterRoles) Patch Uses

func (c *FakeClusterRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.ClusterRole, err error)

Patch applies the patch and returns the patched clusterRole.

func (*FakeClusterRoles) Update Uses

func (c *FakeClusterRoles) Update(clusterRole *v1alpha1.ClusterRole) (result *v1alpha1.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 Uses

func (c *FakeClusterRoles) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeRbacV1alpha1 Uses

type FakeRbacV1alpha1 struct {
    *testing.Fake
}

func (*FakeRbacV1alpha1) ClusterRoleBindings Uses

func (c *FakeRbacV1alpha1) ClusterRoleBindings() v1alpha1.ClusterRoleBindingInterface

func (*FakeRbacV1alpha1) ClusterRoles Uses

func (c *FakeRbacV1alpha1) ClusterRoles() v1alpha1.ClusterRoleInterface

func (*FakeRbacV1alpha1) RESTClient Uses

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

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

func (*FakeRbacV1alpha1) RoleBindings Uses

func (c *FakeRbacV1alpha1) RoleBindings(namespace string) v1alpha1.RoleBindingInterface

func (*FakeRbacV1alpha1) Roles Uses

func (c *FakeRbacV1alpha1) Roles(namespace string) v1alpha1.RoleInterface

type FakeRoleBindings Uses

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

FakeRoleBindings implements RoleBindingInterface

func (*FakeRoleBindings) Create Uses

func (c *FakeRoleBindings) Create(roleBinding *v1alpha1.RoleBinding) (result *v1alpha1.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 Uses

func (c *FakeRoleBindings) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeRoleBindings) DeleteCollection Uses

func (c *FakeRoleBindings) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRoleBindings) Get Uses

func (c *FakeRoleBindings) Get(name string, options v1.GetOptions) (result *v1alpha1.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 Uses

func (c *FakeRoleBindings) List(opts v1.ListOptions) (result *v1alpha1.RoleBindingList, err error)

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

func (*FakeRoleBindings) Patch Uses

func (c *FakeRoleBindings) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.RoleBinding, err error)

Patch applies the patch and returns the patched roleBinding.

func (*FakeRoleBindings) Update Uses

func (c *FakeRoleBindings) Update(roleBinding *v1alpha1.RoleBinding) (result *v1alpha1.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 Uses

func (c *FakeRoleBindings) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeRoles Uses

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

FakeRoles implements RoleInterface

func (*FakeRoles) Create Uses

func (c *FakeRoles) Create(role *v1alpha1.Role) (result *v1alpha1.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 Uses

func (c *FakeRoles) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeRoles) DeleteCollection Uses

func (c *FakeRoles) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRoles) Get Uses

func (c *FakeRoles) Get(name string, options v1.GetOptions) (result *v1alpha1.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 Uses

func (c *FakeRoles) List(opts v1.ListOptions) (result *v1alpha1.RoleList, err error)

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

func (*FakeRoles) Patch Uses

func (c *FakeRoles) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Role, err error)

Patch applies the patch and returns the patched role.

func (*FakeRoles) Update Uses

func (c *FakeRoles) Update(role *v1alpha1.Role) (result *v1alpha1.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 Uses

func (c *FakeRoles) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Package fake imports 9 packages (graph) and is imported by 3 packages. Updated 2018-05-17. Refresh now. Tools for package owners.