fake

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

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 10 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 FakeDatabases

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

FakeDatabases implements DatabaseInterface

func (*FakeDatabases) Create

func (c *FakeDatabases) Create(database *example_com_v1.Database) (result *example_com_v1.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 *example_com_v1.Database, err error)

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

func (*FakeDatabases) GetScale

func (c *FakeDatabases) GetScale(databaseName string, options v1.GetOptions) (result *autoscaling_v1.Scale, err error)

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

func (*FakeDatabases) List

func (c *FakeDatabases) List(opts v1.ListOptions) (result *example_com_v1.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 *example_com_v1.Database, err error)

Patch applies the patch and returns the patched database.

func (*FakeDatabases) Update

func (c *FakeDatabases) Update(database *example_com_v1.Database) (result *example_com_v1.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) UpdateScale

func (c *FakeDatabases) UpdateScale(databaseName string, scale *autoscaling_v1.Scale) (result *autoscaling_v1.Scale, err error)

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

func (*FakeDatabases) UpdateStatus

func (c *FakeDatabases) UpdateStatus(database *example_com_v1.Database) (*example_com_v1.Database, error)

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

func (*FakeDatabases) Watch

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

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

type FakeExampleV1

type FakeExampleV1 struct {
	*testing.Fake
}

func (*FakeExampleV1) Databases

func (c *FakeExampleV1) Databases(namespace string) v1.DatabaseInterface

func (*FakeExampleV1) RESTClient

func (c *FakeExampleV1) 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