fake

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 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 FakeAcidV1

type FakeAcidV1 struct {
	*testing.Fake
}

func (*FakeAcidV1) OperatorConfigurations

func (c *FakeAcidV1) OperatorConfigurations(namespace string) v1.OperatorConfigurationInterface

func (*FakeAcidV1) Postgresqls

func (c *FakeAcidV1) Postgresqls(namespace string) v1.PostgresqlInterface

func (*FakeAcidV1) RESTClient

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

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

type FakeOperatorConfigurations

type FakeOperatorConfigurations struct {
	Fake *FakeAcidV1
	// contains filtered or unexported fields
}

FakeOperatorConfigurations implements OperatorConfigurationInterface

func (*FakeOperatorConfigurations) Get

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

type FakePostgresqls

type FakePostgresqls struct {
	Fake *FakeAcidV1
	// contains filtered or unexported fields
}

FakePostgresqls implements PostgresqlInterface

func (*FakePostgresqls) Create

func (c *FakePostgresqls) Create(postgresql *acidzalandov1.Postgresql) (result *acidzalandov1.Postgresql, err error)

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

func (*FakePostgresqls) Delete

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

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

func (*FakePostgresqls) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePostgresqls) Get

func (c *FakePostgresqls) Get(name string, options v1.GetOptions) (result *acidzalandov1.Postgresql, err error)

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

func (*FakePostgresqls) List

func (c *FakePostgresqls) List(opts v1.ListOptions) (result *acidzalandov1.PostgresqlList, err error)

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

func (*FakePostgresqls) Patch

func (c *FakePostgresqls) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *acidzalandov1.Postgresql, err error)

Patch applies the patch and returns the patched postgresql.

func (*FakePostgresqls) Update

func (c *FakePostgresqls) Update(postgresql *acidzalandov1.Postgresql) (result *acidzalandov1.Postgresql, err error)

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

func (*FakePostgresqls) UpdateStatus

func (c *FakePostgresqls) UpdateStatus(postgresql *acidzalandov1.Postgresql) (*acidzalandov1.Postgresql, error)

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

func (*FakePostgresqls) Watch

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

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

Jump to

Keyboard shortcuts

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