fake

package
v0.0.0-...-cb4c79d Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT 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 FakeRedisV1

type FakeRedisV1 struct {
	*testing.Fake
}

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

func (c *FakeRedises) Create(redis *redis_v1.Redis) (result *redis_v1.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 (*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

func (c *FakeRedises) Update(redis *redis_v1.Redis) (result *redis_v1.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 (*FakeRedises) UpdateStatus

func (c *FakeRedises) UpdateStatus(redis *redis_v1.Redis) (*redis_v1.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 (*FakeRedises) Watch

func (c *FakeRedises) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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