fake

package
v0.33.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 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 FakeMariaDBDatabases

type FakeMariaDBDatabases struct {
	Fake *FakeSchemaV1alpha1
	// contains filtered or unexported fields
}

FakeMariaDBDatabases implements MariaDBDatabaseInterface

func (*FakeMariaDBDatabases) Create

func (c *FakeMariaDBDatabases) Create(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.CreateOptions) (result *v1alpha1.MariaDBDatabase, err error)

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

func (*FakeMariaDBDatabases) Delete

func (c *FakeMariaDBDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeMariaDBDatabases) DeleteCollection

func (c *FakeMariaDBDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMariaDBDatabases) Get

func (c *FakeMariaDBDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MariaDBDatabase, err error)

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

func (*FakeMariaDBDatabases) List

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

func (*FakeMariaDBDatabases) Patch

func (c *FakeMariaDBDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MariaDBDatabase, err error)

Patch applies the patch and returns the patched mariaDBDatabase.

func (*FakeMariaDBDatabases) Update

func (c *FakeMariaDBDatabases) Update(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MariaDBDatabase, err error)

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

func (*FakeMariaDBDatabases) UpdateStatus

func (c *FakeMariaDBDatabases) UpdateStatus(ctx context.Context, mariaDBDatabase *v1alpha1.MariaDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MariaDBDatabase, error)

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

func (*FakeMariaDBDatabases) Watch

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

type FakeMongoDBDatabases

type FakeMongoDBDatabases struct {
	Fake *FakeSchemaV1alpha1
	// contains filtered or unexported fields
}

FakeMongoDBDatabases implements MongoDBDatabaseInterface

func (*FakeMongoDBDatabases) Create

func (c *FakeMongoDBDatabases) Create(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.CreateOptions) (result *v1alpha1.MongoDBDatabase, err error)

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

func (*FakeMongoDBDatabases) Delete

func (c *FakeMongoDBDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeMongoDBDatabases) DeleteCollection

func (c *FakeMongoDBDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMongoDBDatabases) Get

func (c *FakeMongoDBDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MongoDBDatabase, err error)

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

func (*FakeMongoDBDatabases) List

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

func (*FakeMongoDBDatabases) Patch

func (c *FakeMongoDBDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MongoDBDatabase, err error)

Patch applies the patch and returns the patched mongoDBDatabase.

func (*FakeMongoDBDatabases) Update

func (c *FakeMongoDBDatabases) Update(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (result *v1alpha1.MongoDBDatabase, err error)

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

func (*FakeMongoDBDatabases) UpdateStatus

func (c *FakeMongoDBDatabases) UpdateStatus(ctx context.Context, mongoDBDatabase *v1alpha1.MongoDBDatabase, opts v1.UpdateOptions) (*v1alpha1.MongoDBDatabase, error)

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

func (*FakeMongoDBDatabases) Watch

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

type FakeMySQLDatabases

type FakeMySQLDatabases struct {
	Fake *FakeSchemaV1alpha1
	// contains filtered or unexported fields
}

FakeMySQLDatabases implements MySQLDatabaseInterface

func (*FakeMySQLDatabases) Create

func (c *FakeMySQLDatabases) Create(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.CreateOptions) (result *v1alpha1.MySQLDatabase, err error)

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

func (*FakeMySQLDatabases) Delete

func (c *FakeMySQLDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakeMySQLDatabases) DeleteCollection

func (c *FakeMySQLDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeMySQLDatabases) Get

func (c *FakeMySQLDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.MySQLDatabase, err error)

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

func (*FakeMySQLDatabases) List

func (c *FakeMySQLDatabases) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.MySQLDatabaseList, err error)

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

func (*FakeMySQLDatabases) Patch

func (c *FakeMySQLDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.MySQLDatabase, err error)

Patch applies the patch and returns the patched mySQLDatabase.

func (*FakeMySQLDatabases) Update

func (c *FakeMySQLDatabases) Update(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (result *v1alpha1.MySQLDatabase, err error)

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

func (*FakeMySQLDatabases) UpdateStatus

func (c *FakeMySQLDatabases) UpdateStatus(ctx context.Context, mySQLDatabase *v1alpha1.MySQLDatabase, opts v1.UpdateOptions) (*v1alpha1.MySQLDatabase, error)

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

func (*FakeMySQLDatabases) Watch

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

type FakePostgresDatabases

type FakePostgresDatabases struct {
	Fake *FakeSchemaV1alpha1
	// contains filtered or unexported fields
}

FakePostgresDatabases implements PostgresDatabaseInterface

func (*FakePostgresDatabases) Create

func (c *FakePostgresDatabases) Create(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.CreateOptions) (result *v1alpha1.PostgresDatabase, err error)

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

func (*FakePostgresDatabases) Delete

func (c *FakePostgresDatabases) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakePostgresDatabases) DeleteCollection

func (c *FakePostgresDatabases) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePostgresDatabases) Get

func (c *FakePostgresDatabases) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.PostgresDatabase, err error)

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

func (*FakePostgresDatabases) List

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

func (*FakePostgresDatabases) Patch

func (c *FakePostgresDatabases) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.PostgresDatabase, err error)

Patch applies the patch and returns the patched postgresDatabase.

func (*FakePostgresDatabases) Update

func (c *FakePostgresDatabases) Update(ctx context.Context, postgresDatabase *v1alpha1.PostgresDatabase, opts v1.UpdateOptions) (result *v1alpha1.PostgresDatabase, err error)

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

func (*FakePostgresDatabases) UpdateStatus

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

func (*FakePostgresDatabases) Watch

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

type FakeSchemaV1alpha1

type FakeSchemaV1alpha1 struct {
	*testing.Fake
}

func (*FakeSchemaV1alpha1) MariaDBDatabases

func (c *FakeSchemaV1alpha1) MariaDBDatabases(namespace string) v1alpha1.MariaDBDatabaseInterface

func (*FakeSchemaV1alpha1) MongoDBDatabases

func (c *FakeSchemaV1alpha1) MongoDBDatabases(namespace string) v1alpha1.MongoDBDatabaseInterface

func (*FakeSchemaV1alpha1) MySQLDatabases

func (c *FakeSchemaV1alpha1) MySQLDatabases(namespace string) v1alpha1.MySQLDatabaseInterface

func (*FakeSchemaV1alpha1) PostgresDatabases

func (c *FakeSchemaV1alpha1) PostgresDatabases(namespace string) v1alpha1.PostgresDatabaseInterface

func (*FakeSchemaV1alpha1) RESTClient

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