fake

package
v0.0.0-...-6cb7aba Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2019 License: Apache-2.0 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 FakeMysqls

type FakeMysqls struct {
	Fake *FakeRdsV1alpha1
	// contains filtered or unexported fields
}

FakeMysqls implements MysqlInterface

func (*FakeMysqls) Create

func (c *FakeMysqls) Create(mysql *v1alpha1.Mysql) (result *v1alpha1.Mysql, err error)

Create takes the representation of a mysql and creates it. Returns the server's representation of the mysql, and an error, if there is any.

func (*FakeMysqls) Delete

func (c *FakeMysqls) Delete(name string, options *v1.DeleteOptions) error

Delete takes name of the mysql and deletes it. Returns an error if one occurs.

func (*FakeMysqls) DeleteCollection

func (c *FakeMysqls) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMysqls) Get

func (c *FakeMysqls) Get(name string, options v1.GetOptions) (result *v1alpha1.Mysql, err error)

Get takes name of the mysql, and returns the corresponding mysql object, and an error if there is any.

func (*FakeMysqls) List

func (c *FakeMysqls) List(opts v1.ListOptions) (result *v1alpha1.MysqlList, err error)

List takes label and field selectors, and returns the list of Mysqls that match those selectors.

func (*FakeMysqls) Patch

func (c *FakeMysqls) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Mysql, err error)

Patch applies the patch and returns the patched mysql.

func (*FakeMysqls) Update

func (c *FakeMysqls) Update(mysql *v1alpha1.Mysql) (result *v1alpha1.Mysql, err error)

Update takes the representation of a mysql and updates it. Returns the server's representation of the mysql, and an error, if there is any.

func (*FakeMysqls) UpdateStatus

func (c *FakeMysqls) UpdateStatus(mysql *v1alpha1.Mysql) (*v1alpha1.Mysql, error)

UpdateStatus was generated because the type contains a Status member. Add a +genclient:noStatus comment above the type to avoid generating UpdateStatus().

func (*FakeMysqls) Watch

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

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

type FakeRdsV1alpha1

type FakeRdsV1alpha1 struct {
	*testing.Fake
}

func (*FakeRdsV1alpha1) Mysqls

func (c *FakeRdsV1alpha1) Mysqls(namespace string) v1alpha1.MysqlInterface

func (*FakeRdsV1alpha1) RESTClient

func (c *FakeRdsV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

Jump to

Keyboard shortcuts

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