fake

package
v0.0.0-...-cc4f0fa Latest Latest
Warning

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

Go to latest
Published: Jan 11, 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 FakePostgresDBs

type FakePostgresDBs struct {
	Fake *FakePostgresdbV1alpha1
	// contains filtered or unexported fields
}

FakePostgresDBs implements PostgresDBInterface

func (*FakePostgresDBs) Create

func (c *FakePostgresDBs) Create(postgresDB *v1alpha1.PostgresDB) (result *v1alpha1.PostgresDB, err error)

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

func (*FakePostgresDBs) Delete

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

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

func (*FakePostgresDBs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePostgresDBs) Get

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

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

func (*FakePostgresDBs) List

func (c *FakePostgresDBs) List(opts v1.ListOptions) (result *v1alpha1.PostgresDBList, err error)

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

func (*FakePostgresDBs) Patch

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

Patch applies the patch and returns the patched postgresDB.

func (*FakePostgresDBs) Update

func (c *FakePostgresDBs) Update(postgresDB *v1alpha1.PostgresDB) (result *v1alpha1.PostgresDB, err error)

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

func (*FakePostgresDBs) UpdateStatus

func (c *FakePostgresDBs) UpdateStatus(postgresDB *v1alpha1.PostgresDB) (*v1alpha1.PostgresDB, error)

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

func (*FakePostgresDBs) Watch

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

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

type FakePostgresdbV1alpha1

type FakePostgresdbV1alpha1 struct {
	*testing.Fake
}

func (*FakePostgresdbV1alpha1) PostgresDBs

func (c *FakePostgresdbV1alpha1) PostgresDBs(namespace string) v1alpha1.PostgresDBInterface

func (*FakePostgresdbV1alpha1) RESTClient

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