Documentation
¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeCacheV1alpha1
- type FakeRedis
- func (c *FakeRedis) Create(ctx context.Context, redis *v1alpha1.Redis, opts v1.CreateOptions) (result *v1alpha1.Redis, err error)
- func (c *FakeRedis) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeRedis) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeRedis) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Redis, err error)
- func (c *FakeRedis) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisList, err error)
- func (c *FakeRedis) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Redis, err error)
- func (c *FakeRedis) Update(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (result *v1alpha1.Redis, err error)
- func (c *FakeRedis) UpdateStatus(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (*v1alpha1.Redis, error)
- func (c *FakeRedis) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeCacheV1alpha1 ¶
func (*FakeCacheV1alpha1) RESTClient ¶
func (c *FakeCacheV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeCacheV1alpha1) Redis ¶
func (c *FakeCacheV1alpha1) Redis(namespace string) v1alpha1.RedisInterface
type FakeRedis ¶
type FakeRedis struct { Fake *FakeCacheV1alpha1 // contains filtered or unexported fields }
FakeRedis implements RedisInterface
func (*FakeRedis) Create ¶
func (c *FakeRedis) Create(ctx context.Context, redis *v1alpha1.Redis, opts v1.CreateOptions) (result *v1alpha1.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 ¶
Delete takes name of the redis and deletes it. Returns an error if one occurs.
func (*FakeRedis) DeleteCollection ¶
func (c *FakeRedis) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRedis) Get ¶
func (c *FakeRedis) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.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 ¶
func (c *FakeRedis) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RedisList, err error)
List takes label and field selectors, and returns the list of Redis that match those selectors.
func (*FakeRedis) Patch ¶
func (c *FakeRedis) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Redis, err error)
Patch applies the patch and returns the patched redis.
func (*FakeRedis) Update ¶
func (c *FakeRedis) Update(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (result *v1alpha1.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 ¶
func (c *FakeRedis) UpdateStatus(ctx context.Context, redis *v1alpha1.Redis, opts v1.UpdateOptions) (*v1alpha1.Redis, error)
UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().