fake

package
v0.17.12-0...-0c304a1 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package fake has the automatically generated clients.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClusterRoleBindings

type FakeClusterRoleBindings struct {
	Fake *FakeRbacV1
}

FakeClusterRoleBindings implements ClusterRoleBindingInterface

func (*FakeClusterRoleBindings) Create

func (c *FakeClusterRoleBindings) Create(clusterRoleBinding *rbacv1.ClusterRoleBinding) (result *rbacv1.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(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterRoleBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterRoleBindings) Get

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

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

func (*FakeClusterRoleBindings) Patch

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

Patch applies the patch and returns the patched clusterRoleBinding.

func (*FakeClusterRoleBindings) Update

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

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

type FakeClusterRoles

type FakeClusterRoles struct {
	Fake *FakeRbacV1
}

FakeClusterRoles implements ClusterRoleInterface

func (*FakeClusterRoles) Create

func (c *FakeClusterRoles) Create(clusterRole *rbacv1.ClusterRole) (result *rbacv1.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(name string, options *v1.DeleteOptions) error

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

func (*FakeClusterRoles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterRoles) Get

func (c *FakeClusterRoles) Get(name string, options v1.GetOptions) (result *rbacv1.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(opts v1.ListOptions) (result *rbacv1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *rbacv1.ClusterRole, err error)

Patch applies the patch and returns the patched clusterRole.

func (*FakeClusterRoles) Update

func (c *FakeClusterRoles) Update(clusterRole *rbacv1.ClusterRole) (result *rbacv1.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(opts v1.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

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

FakeRoleBindings implements RoleBindingInterface

func (*FakeRoleBindings) Create

func (c *FakeRoleBindings) Create(roleBinding *rbacv1.RoleBinding) (result *rbacv1.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(name string, options *v1.DeleteOptions) error

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

func (*FakeRoleBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRoleBindings) Get

func (c *FakeRoleBindings) Get(name string, options v1.GetOptions) (result *rbacv1.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(opts v1.ListOptions) (result *rbacv1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *rbacv1.RoleBinding, err error)

Patch applies the patch and returns the patched roleBinding.

func (*FakeRoleBindings) Update

func (c *FakeRoleBindings) Update(roleBinding *rbacv1.RoleBinding) (result *rbacv1.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(opts v1.ListOptions) (watch.Interface, error)

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

type FakeRoles

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

FakeRoles implements RoleInterface

func (*FakeRoles) Create

func (c *FakeRoles) Create(role *rbacv1.Role) (result *rbacv1.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(name string, options *v1.DeleteOptions) error

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

func (*FakeRoles) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRoles) Get

func (c *FakeRoles) Get(name string, options v1.GetOptions) (result *rbacv1.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(opts v1.ListOptions) (result *rbacv1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *rbacv1.Role, err error)

Patch applies the patch and returns the patched role.

func (*FakeRoles) Update

func (c *FakeRoles) Update(role *rbacv1.Role) (result *rbacv1.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(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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