Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeAnywhyV1alpha1
- type FakeRedisClusters
- func (c *FakeRedisClusters) Create(redisCluster *v1alpha1.RedisCluster) (result *v1alpha1.RedisCluster, err error)
- func (c *FakeRedisClusters) Delete(name string, options *v1.DeleteOptions) error
- func (c *FakeRedisClusters) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error
- func (c *FakeRedisClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.RedisCluster, err error)
- func (c *FakeRedisClusters) List(opts v1.ListOptions) (result *v1alpha1.RedisClusterList, err error)
- func (c *FakeRedisClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.RedisCluster, err error)
- func (c *FakeRedisClusters) Update(redisCluster *v1alpha1.RedisCluster) (result *v1alpha1.RedisCluster, err error)
- func (c *FakeRedisClusters) UpdateStatus(redisCluster *v1alpha1.RedisCluster) (*v1alpha1.RedisCluster, error)
- func (c *FakeRedisClusters) Watch(opts v1.ListOptions) (watch.Interface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeAnywhyV1alpha1 ¶
func (*FakeAnywhyV1alpha1) RESTClient ¶
func (c *FakeAnywhyV1alpha1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeAnywhyV1alpha1) RedisClusters ¶
func (c *FakeAnywhyV1alpha1) RedisClusters(namespace string) v1alpha1.RedisClusterInterface
type FakeRedisClusters ¶
type FakeRedisClusters struct { Fake *FakeAnywhyV1alpha1 // contains filtered or unexported fields }
FakeRedisClusters implements RedisClusterInterface
func (*FakeRedisClusters) Create ¶
func (c *FakeRedisClusters) Create(redisCluster *v1alpha1.RedisCluster) (result *v1alpha1.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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error
DeleteCollection deletes a collection of objects.
func (*FakeRedisClusters) Get ¶
func (c *FakeRedisClusters) Get(name string, options v1.GetOptions) (result *v1alpha1.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(opts v1.ListOptions) (result *v1alpha1.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(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.RedisCluster, err error)
Patch applies the patch and returns the patched redisCluster.
func (*FakeRedisClusters) Update ¶
func (c *FakeRedisClusters) Update(redisCluster *v1alpha1.RedisCluster) (result *v1alpha1.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(redisCluster *v1alpha1.RedisCluster) (*v1alpha1.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 ¶
func (c *FakeRedisClusters) Watch(opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested redisClusters.