Documentation ¶
Overview ¶
MIT License
Copyright (c) 2018 Amadeus s.a.s.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package fake has the automatically generated clients.
MIT License ¶
Copyright (c) 2018 Amadeus s.a.s.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
MIT License ¶
Copyright (c) 2018 Amadeus s.a.s.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Index ¶
- type FakeRedisClusters
- func (c *FakeRedisClusters) Create(redisCluster *redis_v1.RedisCluster) (result *redis_v1.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 *redis_v1.RedisCluster, err error)
- func (c *FakeRedisClusters) List(opts v1.ListOptions) (result *redis_v1.RedisClusterList, err error)
- func (c *FakeRedisClusters) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *redis_v1.RedisCluster, err error)
- func (c *FakeRedisClusters) Update(redisCluster *redis_v1.RedisCluster) (result *redis_v1.RedisCluster, err error)
- func (c *FakeRedisClusters) UpdateStatus(redisCluster *redis_v1.RedisCluster) (*redis_v1.RedisCluster, error)
- func (c *FakeRedisClusters) Watch(opts v1.ListOptions) (watch.Interface, error)
- type FakeRedisoperatorV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeRedisClusters ¶
type FakeRedisClusters struct { Fake *FakeRedisoperatorV1 // contains filtered or unexported fields }
FakeRedisClusters implements RedisClusterInterface
func (*FakeRedisClusters) Create ¶
func (c *FakeRedisClusters) Create(redisCluster *redis_v1.RedisCluster) (result *redis_v1.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 *redis_v1.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 *redis_v1.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 *redis_v1.RedisCluster, err error)
Patch applies the patch and returns the patched redisCluster.
func (*FakeRedisClusters) Update ¶
func (c *FakeRedisClusters) Update(redisCluster *redis_v1.RedisCluster) (result *redis_v1.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 *redis_v1.RedisCluster) (*redis_v1.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.
type FakeRedisoperatorV1 ¶
func (*FakeRedisoperatorV1) RESTClient ¶
func (c *FakeRedisoperatorV1) RESTClient() rest.Interface
RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.
func (*FakeRedisoperatorV1) RedisClusters ¶
func (c *FakeRedisoperatorV1) RedisClusters(namespace string) v1.RedisClusterInterface