fake

package
v0.0.0-...-de64a1c Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2020 License: Apache-2.0 Imports: 9 Imported by: 2

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 FakePostgrescontrollerV1

type FakePostgrescontrollerV1 struct {
	*testing.Fake
}

func (*FakePostgrescontrollerV1) Postgreses

func (c *FakePostgrescontrollerV1) Postgreses(namespace string) v1.PostgresInterface

func (*FakePostgrescontrollerV1) RESTClient

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

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

type FakePostgreses

type FakePostgreses struct {
	Fake *FakePostgrescontrollerV1
	// contains filtered or unexported fields
}

FakePostgreses implements PostgresInterface

func (*FakePostgreses) Create

func (c *FakePostgreses) Create(postgres *postgrescontrollerv1.Postgres) (result *postgrescontrollerv1.Postgres, err error)

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

func (*FakePostgreses) Delete

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

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

func (*FakePostgreses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePostgreses) Get

func (c *FakePostgreses) Get(name string, options v1.GetOptions) (result *postgrescontrollerv1.Postgres, err error)

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

func (*FakePostgreses) List

func (c *FakePostgreses) List(opts v1.ListOptions) (result *postgrescontrollerv1.PostgresList, err error)

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

func (*FakePostgreses) Patch

func (c *FakePostgreses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *postgrescontrollerv1.Postgres, err error)

Patch applies the patch and returns the patched postgres.

func (*FakePostgreses) Update

func (c *FakePostgreses) Update(postgres *postgrescontrollerv1.Postgres) (result *postgrescontrollerv1.Postgres, err error)

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

func (*FakePostgreses) Watch

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

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

Jump to

Keyboard shortcuts

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