fake

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2018 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 FakeAtlasdbV1alpha1

type FakeAtlasdbV1alpha1 struct {
	*testing.Fake
}

func (*FakeAtlasdbV1alpha1) DatabaseSchemas

func (c *FakeAtlasdbV1alpha1) DatabaseSchemas(namespace string) v1alpha1.DatabaseSchemaInterface

func (*FakeAtlasdbV1alpha1) DatabaseServers

func (c *FakeAtlasdbV1alpha1) DatabaseServers(namespace string) v1alpha1.DatabaseServerInterface

func (*FakeAtlasdbV1alpha1) Databases

func (c *FakeAtlasdbV1alpha1) Databases(namespace string) v1alpha1.DatabaseInterface

func (*FakeAtlasdbV1alpha1) RESTClient

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

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

type FakeDatabaseSchemas

type FakeDatabaseSchemas struct {
	Fake *FakeAtlasdbV1alpha1
	// contains filtered or unexported fields
}

FakeDatabaseSchemas implements DatabaseSchemaInterface

func (*FakeDatabaseSchemas) Create

func (c *FakeDatabaseSchemas) Create(databaseSchema *v1alpha1.DatabaseSchema) (result *v1alpha1.DatabaseSchema, err error)

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

func (*FakeDatabaseSchemas) Delete

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

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

func (*FakeDatabaseSchemas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabaseSchemas) Get

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

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

func (*FakeDatabaseSchemas) List

func (c *FakeDatabaseSchemas) List(opts v1.ListOptions) (result *v1alpha1.DatabaseSchemaList, err error)

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

func (*FakeDatabaseSchemas) Patch

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

Patch applies the patch and returns the patched databaseSchema.

func (*FakeDatabaseSchemas) Update

func (c *FakeDatabaseSchemas) Update(databaseSchema *v1alpha1.DatabaseSchema) (result *v1alpha1.DatabaseSchema, err error)

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

func (*FakeDatabaseSchemas) Watch

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

type FakeDatabaseServers

type FakeDatabaseServers struct {
	Fake *FakeAtlasdbV1alpha1
	// contains filtered or unexported fields
}

FakeDatabaseServers implements DatabaseServerInterface

func (*FakeDatabaseServers) Create

func (c *FakeDatabaseServers) Create(databaseServer *v1alpha1.DatabaseServer) (result *v1alpha1.DatabaseServer, err error)

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

func (*FakeDatabaseServers) Delete

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

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

func (*FakeDatabaseServers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabaseServers) Get

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

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

func (*FakeDatabaseServers) List

func (c *FakeDatabaseServers) List(opts v1.ListOptions) (result *v1alpha1.DatabaseServerList, err error)

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

func (*FakeDatabaseServers) Patch

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

Patch applies the patch and returns the patched databaseServer.

func (*FakeDatabaseServers) Update

func (c *FakeDatabaseServers) Update(databaseServer *v1alpha1.DatabaseServer) (result *v1alpha1.DatabaseServer, err error)

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

func (*FakeDatabaseServers) Watch

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

type FakeDatabases

type FakeDatabases struct {
	Fake *FakeAtlasdbV1alpha1
	// contains filtered or unexported fields
}

FakeDatabases implements DatabaseInterface

func (*FakeDatabases) Create

func (c *FakeDatabases) Create(database *v1alpha1.Database) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) Delete

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

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

func (*FakeDatabases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabases) Get

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

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

func (*FakeDatabases) List

func (c *FakeDatabases) List(opts v1.ListOptions) (result *v1alpha1.DatabaseList, err error)

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

func (*FakeDatabases) Patch

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

Patch applies the patch and returns the patched database.

func (*FakeDatabases) Update

func (c *FakeDatabases) Update(database *v1alpha1.Database) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) Watch

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

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

Jump to

Keyboard shortcuts

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