fake

package
v0.15.10 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 9 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 FakeRedis added in v0.15.6

type FakeRedis struct {
	Fake *FakeV1beta2
	// contains filtered or unexported fields
}

FakeRedis implements RedisInterface

func (*FakeRedis) Create added in v0.15.6

func (c *FakeRedis) Create(ctx context.Context, redis *v1beta2.Redis, opts v1.CreateOptions) (result *v1beta2.Redis, err error)

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

func (*FakeRedis) Delete added in v0.15.6

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

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

func (*FakeRedis) DeleteCollection added in v0.15.6

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

DeleteCollection deletes a collection of objects.

func (*FakeRedis) Get added in v0.15.6

func (c *FakeRedis) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.Redis, err error)

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

func (*FakeRedis) List added in v0.15.6

func (c *FakeRedis) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.RedisList, err error)

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

func (*FakeRedis) Patch added in v0.15.6

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

Patch applies the patch and returns the patched redis.

func (*FakeRedis) Update added in v0.15.6

func (c *FakeRedis) Update(ctx context.Context, redis *v1beta2.Redis, opts v1.UpdateOptions) (result *v1beta2.Redis, err error)

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

func (*FakeRedis) UpdateStatus added in v0.15.6

func (c *FakeRedis) UpdateStatus(ctx context.Context, redis *v1beta2.Redis, opts v1.UpdateOptions) (*v1beta2.Redis, error)

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

func (*FakeRedis) Watch added in v0.15.6

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

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

type FakeRedisClusters

type FakeRedisClusters struct {
	Fake *FakeV1beta2
	// contains filtered or unexported fields
}

FakeRedisClusters implements RedisClusterInterface

func (*FakeRedisClusters) Create

func (c *FakeRedisClusters) Create(ctx context.Context, redisCluster *v1beta2.RedisCluster, opts v1.CreateOptions) (result *v1beta2.RedisCluster, err error)

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

func (*FakeRedisClusters) Delete

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

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

func (*FakeRedisClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRedisClusters) Get

func (c *FakeRedisClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.RedisCluster, err error)

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

func (*FakeRedisClusters) List

func (c *FakeRedisClusters) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.RedisClusterList, err error)

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

func (*FakeRedisClusters) Patch

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

Patch applies the patch and returns the patched redisCluster.

func (*FakeRedisClusters) Update

func (c *FakeRedisClusters) Update(ctx context.Context, redisCluster *v1beta2.RedisCluster, opts v1.UpdateOptions) (result *v1beta2.RedisCluster, err error)

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

func (*FakeRedisClusters) UpdateStatus

func (c *FakeRedisClusters) UpdateStatus(ctx context.Context, redisCluster *v1beta2.RedisCluster, opts v1.UpdateOptions) (*v1beta2.RedisCluster, error)

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

func (*FakeRedisClusters) Watch

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

type FakeRedisReplications

type FakeRedisReplications struct {
	Fake *FakeV1beta2
	// contains filtered or unexported fields
}

FakeRedisReplications implements RedisReplicationInterface

func (*FakeRedisReplications) Create

func (c *FakeRedisReplications) Create(ctx context.Context, redisReplication *v1beta2.RedisReplication, opts v1.CreateOptions) (result *v1beta2.RedisReplication, err error)

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

func (*FakeRedisReplications) Delete

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

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

func (*FakeRedisReplications) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRedisReplications) Get

func (c *FakeRedisReplications) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.RedisReplication, err error)

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

func (*FakeRedisReplications) List

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

func (*FakeRedisReplications) Patch

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

Patch applies the patch and returns the patched redisReplication.

func (*FakeRedisReplications) Update

func (c *FakeRedisReplications) Update(ctx context.Context, redisReplication *v1beta2.RedisReplication, opts v1.UpdateOptions) (result *v1beta2.RedisReplication, err error)

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

func (*FakeRedisReplications) UpdateStatus

func (c *FakeRedisReplications) UpdateStatus(ctx context.Context, redisReplication *v1beta2.RedisReplication, opts v1.UpdateOptions) (*v1beta2.RedisReplication, error)

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

func (*FakeRedisReplications) Watch

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

type FakeRedisSentinels

type FakeRedisSentinels struct {
	Fake *FakeV1beta2
	// contains filtered or unexported fields
}

FakeRedisSentinels implements RedisSentinelInterface

func (*FakeRedisSentinels) Create

func (c *FakeRedisSentinels) Create(ctx context.Context, redisSentinel *v1beta2.RedisSentinel, opts v1.CreateOptions) (result *v1beta2.RedisSentinel, err error)

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

func (*FakeRedisSentinels) Delete

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

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

func (*FakeRedisSentinels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRedisSentinels) Get

func (c *FakeRedisSentinels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta2.RedisSentinel, err error)

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

func (*FakeRedisSentinels) List

func (c *FakeRedisSentinels) List(ctx context.Context, opts v1.ListOptions) (result *v1beta2.RedisSentinelList, err error)

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

func (*FakeRedisSentinels) Patch

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

Patch applies the patch and returns the patched redisSentinel.

func (*FakeRedisSentinels) Update

func (c *FakeRedisSentinels) Update(ctx context.Context, redisSentinel *v1beta2.RedisSentinel, opts v1.UpdateOptions) (result *v1beta2.RedisSentinel, err error)

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

func (*FakeRedisSentinels) UpdateStatus

func (c *FakeRedisSentinels) UpdateStatus(ctx context.Context, redisSentinel *v1beta2.RedisSentinel, opts v1.UpdateOptions) (*v1beta2.RedisSentinel, error)

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

func (*FakeRedisSentinels) Watch

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

type FakeV1beta2

type FakeV1beta2 struct {
	*testing.Fake
}

func (*FakeV1beta2) RESTClient

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

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

func (*FakeV1beta2) Redis added in v0.15.6

func (c *FakeV1beta2) Redis(namespace string) internalversion.RedisInterface

func (*FakeV1beta2) RedisClusters

func (c *FakeV1beta2) RedisClusters(namespace string) internalversion.RedisClusterInterface

func (*FakeV1beta2) RedisReplications

func (c *FakeV1beta2) RedisReplications(namespace string) internalversion.RedisReplicationInterface

func (*FakeV1beta2) RedisSentinels

func (c *FakeV1beta2) RedisSentinels(namespace string) internalversion.RedisSentinelInterface

Jump to

Keyboard shortcuts

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