fake

package
v0.0.0-...-435c516 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: AGPL-3.0 Imports: 12 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 FakeMinioV2

type FakeMinioV2 struct {
	*testing.Fake
}

func (*FakeMinioV2) RESTClient

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

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

func (*FakeMinioV2) Tenants

func (c *FakeMinioV2) Tenants(namespace string) v2.TenantInterface

type FakeTenants

type FakeTenants struct {
	Fake *FakeMinioV2
	// contains filtered or unexported fields
}

FakeTenants implements TenantInterface

func (*FakeTenants) Apply

func (c *FakeTenants) Apply(ctx context.Context, tenant *miniominiov2.TenantApplyConfiguration, opts v1.ApplyOptions) (result *v2.Tenant, err error)

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

func (*FakeTenants) ApplyStatus

func (c *FakeTenants) ApplyStatus(ctx context.Context, tenant *miniominiov2.TenantApplyConfiguration, opts v1.ApplyOptions) (result *v2.Tenant, err error)

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

func (*FakeTenants) Create

func (c *FakeTenants) Create(ctx context.Context, tenant *v2.Tenant, opts v1.CreateOptions) (result *v2.Tenant, err error)

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

func (*FakeTenants) Delete

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

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

func (*FakeTenants) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTenants) Get

func (c *FakeTenants) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2.Tenant, err error)

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

func (*FakeTenants) List

func (c *FakeTenants) List(ctx context.Context, opts v1.ListOptions) (result *v2.TenantList, err error)

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

func (*FakeTenants) Patch

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

Patch applies the patch and returns the patched tenant.

func (*FakeTenants) Update

func (c *FakeTenants) Update(ctx context.Context, tenant *v2.Tenant, opts v1.UpdateOptions) (result *v2.Tenant, err error)

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

func (*FakeTenants) UpdateStatus

func (c *FakeTenants) UpdateStatus(ctx context.Context, tenant *v2.Tenant, opts v1.UpdateOptions) (*v2.Tenant, error)

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

func (*FakeTenants) Watch

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

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

Jump to

Keyboard shortcuts

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