fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2021 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeTenantV1alpha1

type FakeTenantV1alpha1 struct {
	*testing.Fake
}

func (*FakeTenantV1alpha1) RESTClient

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

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

func (*FakeTenantV1alpha1) Workspaces

type FakeWorkspaces

type FakeWorkspaces struct {
	Fake *FakeTenantV1alpha1
}

FakeWorkspaces implements WorkspaceInterface

func (*FakeWorkspaces) Create

func (c *FakeWorkspaces) Create(workspace *v1alpha1.Workspace) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeWorkspaces) Get

func (c *FakeWorkspaces) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Workspace, err error)

Patch applies the patch and returns the patched workspace.

func (*FakeWorkspaces) Update

func (c *FakeWorkspaces) Update(workspace *v1alpha1.Workspace) (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(workspace *v1alpha1.Workspace) (*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

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

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