fake

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2021 License: MPL-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 FakeEtokV1alpha1

type FakeEtokV1alpha1 struct {
	*testing.Fake
}

func (*FakeEtokV1alpha1) RESTClient

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

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

func (*FakeEtokV1alpha1) Runs

func (c *FakeEtokV1alpha1) Runs(namespace string) v1alpha1.RunInterface

func (*FakeEtokV1alpha1) Workspaces

func (c *FakeEtokV1alpha1) Workspaces(namespace string) v1alpha1.WorkspaceInterface

type FakeRuns

type FakeRuns struct {
	Fake *FakeEtokV1alpha1
	// contains filtered or unexported fields
}

FakeRuns implements RunInterface

func (*FakeRuns) Create

func (c *FakeRuns) Create(ctx context.Context, run *v1alpha1.Run, opts v1.CreateOptions) (result *v1alpha1.Run, err error)

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

func (*FakeRuns) Delete

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

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

func (*FakeRuns) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRuns) Get

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

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

func (*FakeRuns) List

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

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

func (*FakeRuns) Patch

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

Patch applies the patch and returns the patched run.

func (*FakeRuns) Update

func (c *FakeRuns) Update(ctx context.Context, run *v1alpha1.Run, opts v1.UpdateOptions) (result *v1alpha1.Run, err error)

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

func (*FakeRuns) Watch

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

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

type FakeWorkspaces

type FakeWorkspaces struct {
	Fake *FakeEtokV1alpha1
	// contains filtered or unexported fields
}

FakeWorkspaces implements WorkspaceInterface

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