fake

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.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 FakeTenancyV1alpha1

type FakeTenancyV1alpha1 struct {
	*testing.Fake
}

func (*FakeTenancyV1alpha1) RESTClient

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

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

func (*FakeTenancyV1alpha1) WorkspaceTypes

func (*FakeTenancyV1alpha1) Workspaces

type FakeWorkspaceTypes

type FakeWorkspaceTypes struct {
	Fake *FakeTenancyV1alpha1
}

FakeWorkspaceTypes implements WorkspaceTypeInterface

func (*FakeWorkspaceTypes) Apply

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

func (*FakeWorkspaceTypes) ApplyStatus

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

func (*FakeWorkspaceTypes) Create

func (c *FakeWorkspaceTypes) Create(ctx context.Context, workspaceType *v1alpha1.WorkspaceType, opts v1.CreateOptions) (result *v1alpha1.WorkspaceType, err error)

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

func (*FakeWorkspaceTypes) Delete

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

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

func (*FakeWorkspaceTypes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkspaceTypes) Get

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

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

func (*FakeWorkspaceTypes) List

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

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

func (*FakeWorkspaceTypes) Patch

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

Patch applies the patch and returns the patched workspaceType.

func (*FakeWorkspaceTypes) Update

func (c *FakeWorkspaceTypes) Update(ctx context.Context, workspaceType *v1alpha1.WorkspaceType, opts v1.UpdateOptions) (result *v1alpha1.WorkspaceType, err error)

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

func (*FakeWorkspaceTypes) UpdateStatus

func (c *FakeWorkspaceTypes) UpdateStatus(ctx context.Context, workspaceType *v1alpha1.WorkspaceType, opts v1.UpdateOptions) (*v1alpha1.WorkspaceType, error)

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

func (*FakeWorkspaceTypes) Watch

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

type FakeWorkspaces

type FakeWorkspaces struct {
	Fake *FakeTenancyV1alpha1
}

FakeWorkspaces implements WorkspaceInterface

func (*FakeWorkspaces) Apply

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

func (*FakeWorkspaces) ApplyStatus

func (c *FakeWorkspaces) ApplyStatus(ctx context.Context, workspace *tenancyv1alpha1.WorkspaceApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Workspace, 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 (*FakeWorkspaces) Create

func (c *FakeWorkspaces) Create(ctx context.Context, workspace *v1alpha1.Workspace, opts v1.CreateOptions) (result *v1alpha1.Workspace, err error)

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

func (*FakeWorkspaces) Delete

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

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

func (*FakeWorkspaces) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeWorkspaces) Get

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

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

func (*FakeWorkspaces) List

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

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

func (*FakeWorkspaces) Patch

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

Patch applies the patch and returns the patched workspace.

func (*FakeWorkspaces) Update

func (c *FakeWorkspaces) Update(ctx context.Context, workspace *v1alpha1.Workspace, opts v1.UpdateOptions) (result *v1alpha1.Workspace, err error)

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

func (*FakeWorkspaces) UpdateStatus

func (c *FakeWorkspaces) UpdateStatus(ctx context.Context, workspace *v1alpha1.Workspace, opts v1.UpdateOptions) (*v1alpha1.Workspace, error)

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

func (*FakeWorkspaces) Watch

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

Jump to

Keyboard shortcuts

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