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 FakeCoreV1alpha1

type FakeCoreV1alpha1 struct {
	*testing.Fake
}

func (*FakeCoreV1alpha1) LogicalClusters

func (c *FakeCoreV1alpha1) LogicalClusters() v1alpha1.LogicalClusterInterface

func (*FakeCoreV1alpha1) RESTClient

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

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

func (*FakeCoreV1alpha1) Shards

type FakeLogicalClusters

type FakeLogicalClusters struct {
	Fake *FakeCoreV1alpha1
}

FakeLogicalClusters implements LogicalClusterInterface

func (*FakeLogicalClusters) Apply

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

func (*FakeLogicalClusters) ApplyStatus

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

func (*FakeLogicalClusters) Create

func (c *FakeLogicalClusters) Create(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, opts v1.CreateOptions) (result *v1alpha1.LogicalCluster, err error)

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

func (*FakeLogicalClusters) Delete

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

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

func (*FakeLogicalClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeLogicalClusters) Get

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

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

func (*FakeLogicalClusters) List

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

func (*FakeLogicalClusters) Patch

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

Patch applies the patch and returns the patched logicalCluster.

func (*FakeLogicalClusters) Update

func (c *FakeLogicalClusters) Update(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, opts v1.UpdateOptions) (result *v1alpha1.LogicalCluster, err error)

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

func (*FakeLogicalClusters) UpdateStatus

func (c *FakeLogicalClusters) UpdateStatus(ctx context.Context, logicalCluster *v1alpha1.LogicalCluster, opts v1.UpdateOptions) (*v1alpha1.LogicalCluster, error)

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

func (*FakeLogicalClusters) Watch

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

type FakeShards

type FakeShards struct {
	Fake *FakeCoreV1alpha1
}

FakeShards implements ShardInterface

func (*FakeShards) Apply

func (c *FakeShards) Apply(ctx context.Context, shard *corev1alpha1.ShardApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Shard, err error)

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

func (*FakeShards) ApplyStatus

func (c *FakeShards) ApplyStatus(ctx context.Context, shard *corev1alpha1.ShardApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.Shard, 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 (*FakeShards) Create

func (c *FakeShards) Create(ctx context.Context, shard *v1alpha1.Shard, opts v1.CreateOptions) (result *v1alpha1.Shard, err error)

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

func (*FakeShards) Delete

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

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

func (*FakeShards) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeShards) Get

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

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

func (*FakeShards) List

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

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

func (*FakeShards) Patch

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

Patch applies the patch and returns the patched shard.

func (*FakeShards) Update

func (c *FakeShards) Update(ctx context.Context, shard *v1alpha1.Shard, opts v1.UpdateOptions) (result *v1alpha1.Shard, err error)

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

func (*FakeShards) UpdateStatus

func (c *FakeShards) UpdateStatus(ctx context.Context, shard *v1alpha1.Shard, opts v1.UpdateOptions) (*v1alpha1.Shard, error)

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

func (*FakeShards) Watch

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

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

Jump to

Keyboard shortcuts

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