fake

package
v1.0.0-alpha.5 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 10 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 FakeClusterRoleRequests

type FakeClusterRoleRequests struct {
	Fake *FakeRegistrationV1alpha1
}

FakeClusterRoleRequests implements ClusterRoleRequestInterface

func (*FakeClusterRoleRequests) Create

func (c *FakeClusterRoleRequests) Create(ctx context.Context, clusterRoleRequest *v1alpha1.ClusterRoleRequest, opts v1.CreateOptions) (result *v1alpha1.ClusterRoleRequest, err error)

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

func (*FakeClusterRoleRequests) Delete

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

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

func (*FakeClusterRoleRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterRoleRequests) Get

func (c *FakeClusterRoleRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ClusterRoleRequest, err error)

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

func (*FakeClusterRoleRequests) List

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

func (*FakeClusterRoleRequests) Patch

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

Patch applies the patch and returns the patched clusterRoleRequest.

func (*FakeClusterRoleRequests) Update

func (c *FakeClusterRoleRequests) Update(ctx context.Context, clusterRoleRequest *v1alpha1.ClusterRoleRequest, opts v1.UpdateOptions) (result *v1alpha1.ClusterRoleRequest, err error)

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

func (*FakeClusterRoleRequests) UpdateStatus

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeClusterRoleRequests) Watch

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

type FakeRegistrationV1alpha1

type FakeRegistrationV1alpha1 struct {
	*testing.Fake
}

func (*FakeRegistrationV1alpha1) ClusterRoleRequests

func (*FakeRegistrationV1alpha1) RESTClient

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

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

func (*FakeRegistrationV1alpha1) RoleRequests

func (c *FakeRegistrationV1alpha1) RoleRequests(namespace string) v1alpha1.RoleRequestInterface

func (*FakeRegistrationV1alpha1) TenantRequests

type FakeRoleRequests

type FakeRoleRequests struct {
	Fake *FakeRegistrationV1alpha1
	// contains filtered or unexported fields
}

FakeRoleRequests implements RoleRequestInterface

func (*FakeRoleRequests) Create

func (c *FakeRoleRequests) Create(ctx context.Context, roleRequest *v1alpha1.RoleRequest, opts v1.CreateOptions) (result *v1alpha1.RoleRequest, err error)

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

func (*FakeRoleRequests) Delete

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

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

func (*FakeRoleRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRoleRequests) Get

func (c *FakeRoleRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RoleRequest, err error)

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

func (*FakeRoleRequests) List

func (c *FakeRoleRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RoleRequestList, err error)

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

func (*FakeRoleRequests) Patch

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

Patch applies the patch and returns the patched roleRequest.

func (*FakeRoleRequests) Update

func (c *FakeRoleRequests) Update(ctx context.Context, roleRequest *v1alpha1.RoleRequest, opts v1.UpdateOptions) (result *v1alpha1.RoleRequest, err error)

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

func (*FakeRoleRequests) UpdateStatus

func (c *FakeRoleRequests) UpdateStatus(ctx context.Context, roleRequest *v1alpha1.RoleRequest, opts v1.UpdateOptions) (*v1alpha1.RoleRequest, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeRoleRequests) Watch

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

type FakeTenantRequests

type FakeTenantRequests struct {
	Fake *FakeRegistrationV1alpha1
}

FakeTenantRequests implements TenantRequestInterface

func (*FakeTenantRequests) Create

func (c *FakeTenantRequests) Create(ctx context.Context, tenantRequest *v1alpha1.TenantRequest, opts v1.CreateOptions) (result *v1alpha1.TenantRequest, err error)

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

func (*FakeTenantRequests) Delete

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

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

func (*FakeTenantRequests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTenantRequests) Get

func (c *FakeTenantRequests) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.TenantRequest, err error)

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

func (*FakeTenantRequests) List

func (c *FakeTenantRequests) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.TenantRequestList, err error)

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

func (*FakeTenantRequests) Patch

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

Patch applies the patch and returns the patched tenantRequest.

func (*FakeTenantRequests) Update

func (c *FakeTenantRequests) Update(ctx context.Context, tenantRequest *v1alpha1.TenantRequest, opts v1.UpdateOptions) (result *v1alpha1.TenantRequest, err error)

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

func (*FakeTenantRequests) UpdateStatus

func (c *FakeTenantRequests) UpdateStatus(ctx context.Context, tenantRequest *v1alpha1.TenantRequest, opts v1.UpdateOptions) (*v1alpha1.TenantRequest, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeTenantRequests) Watch

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

Jump to

Keyboard shortcuts

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