fake

package
v0.5.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: Apache-2.0 Imports: 10 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 FakeClusterWorkspaceShards added in v0.6.0

type FakeClusterWorkspaceShards struct {
	Fake *FakeTenancyV1alpha1
}

FakeClusterWorkspaceShards implements ClusterWorkspaceShardInterface

func (*FakeClusterWorkspaceShards) Create added in v0.6.0

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

func (*FakeClusterWorkspaceShards) Delete added in v0.6.0

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

func (*FakeClusterWorkspaceShards) DeleteCollection added in v0.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterWorkspaceShards) Get added in v0.6.0

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

func (*FakeClusterWorkspaceShards) List added in v0.6.0

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

func (*FakeClusterWorkspaceShards) Patch added in v0.6.0

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

Patch applies the patch and returns the patched clusterWorkspaceShard.

func (*FakeClusterWorkspaceShards) Update added in v0.6.0

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

func (*FakeClusterWorkspaceShards) UpdateStatus added in v0.6.0

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

func (*FakeClusterWorkspaceShards) Watch added in v0.6.0

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

type FakeClusterWorkspaceTypes added in v0.6.0

type FakeClusterWorkspaceTypes struct {
	Fake *FakeTenancyV1alpha1
}

FakeClusterWorkspaceTypes implements ClusterWorkspaceTypeInterface

func (*FakeClusterWorkspaceTypes) Create added in v0.6.0

func (c *FakeClusterWorkspaceTypes) Create(ctx context.Context, clusterWorkspaceType *v1alpha1.ClusterWorkspaceType, opts v1.CreateOptions) (result *v1alpha1.ClusterWorkspaceType, err error)

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

func (*FakeClusterWorkspaceTypes) Delete added in v0.6.0

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

func (*FakeClusterWorkspaceTypes) DeleteCollection added in v0.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterWorkspaceTypes) Get added in v0.6.0

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

func (*FakeClusterWorkspaceTypes) List added in v0.6.0

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

func (*FakeClusterWorkspaceTypes) Patch added in v0.6.0

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

Patch applies the patch and returns the patched clusterWorkspaceType.

func (*FakeClusterWorkspaceTypes) Update added in v0.6.0

func (c *FakeClusterWorkspaceTypes) Update(ctx context.Context, clusterWorkspaceType *v1alpha1.ClusterWorkspaceType, opts v1.UpdateOptions) (result *v1alpha1.ClusterWorkspaceType, err error)

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

func (*FakeClusterWorkspaceTypes) Watch added in v0.6.0

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

type FakeClusterWorkspaces added in v0.6.0

type FakeClusterWorkspaces struct {
	Fake *FakeTenancyV1alpha1
}

FakeClusterWorkspaces implements ClusterWorkspaceInterface

func (*FakeClusterWorkspaces) Create added in v0.6.0

func (c *FakeClusterWorkspaces) Create(ctx context.Context, clusterWorkspace *v1alpha1.ClusterWorkspace, opts v1.CreateOptions) (result *v1alpha1.ClusterWorkspace, err error)

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

func (*FakeClusterWorkspaces) Delete added in v0.6.0

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

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

func (*FakeClusterWorkspaces) DeleteCollection added in v0.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterWorkspaces) Get added in v0.6.0

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

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

func (*FakeClusterWorkspaces) List added in v0.6.0

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

func (*FakeClusterWorkspaces) Patch added in v0.6.0

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

Patch applies the patch and returns the patched clusterWorkspace.

func (*FakeClusterWorkspaces) Update added in v0.6.0

func (c *FakeClusterWorkspaces) Update(ctx context.Context, clusterWorkspace *v1alpha1.ClusterWorkspace, opts v1.UpdateOptions) (result *v1alpha1.ClusterWorkspace, err error)

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

func (*FakeClusterWorkspaces) UpdateStatus added in v0.6.0

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

func (*FakeClusterWorkspaces) Watch added in v0.6.0

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

type FakeTenancyV1alpha1

type FakeTenancyV1alpha1 struct {
	*testing.Fake
}

func (*FakeTenancyV1alpha1) ClusterWorkspaceShards added in v0.6.0

func (c *FakeTenancyV1alpha1) ClusterWorkspaceShards() v1alpha1.ClusterWorkspaceShardInterface

func (*FakeTenancyV1alpha1) ClusterWorkspaceTypes added in v0.6.0

func (c *FakeTenancyV1alpha1) ClusterWorkspaceTypes() v1alpha1.ClusterWorkspaceTypeInterface

func (*FakeTenancyV1alpha1) ClusterWorkspaces added in v0.6.0

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.

Jump to

Keyboard shortcuts

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