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