fake

package
v0.41.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: Apache-2.0 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 FakeArchiverV1alpha1

type FakeArchiverV1alpha1 struct {
	*testing.Fake
}

func (*FakeArchiverV1alpha1) MongoDBArchivers

func (c *FakeArchiverV1alpha1) MongoDBArchivers(namespace string) v1alpha1.MongoDBArchiverInterface

func (*FakeArchiverV1alpha1) MySQLArchivers added in v0.40.0

func (c *FakeArchiverV1alpha1) MySQLArchivers(namespace string) v1alpha1.MySQLArchiverInterface

func (*FakeArchiverV1alpha1) PostgresArchivers

func (c *FakeArchiverV1alpha1) PostgresArchivers(namespace string) v1alpha1.PostgresArchiverInterface

func (*FakeArchiverV1alpha1) RESTClient

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

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

type FakeMongoDBArchivers

type FakeMongoDBArchivers struct {
	Fake *FakeArchiverV1alpha1
	// contains filtered or unexported fields
}

FakeMongoDBArchivers implements MongoDBArchiverInterface

func (*FakeMongoDBArchivers) Create

func (c *FakeMongoDBArchivers) Create(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.CreateOptions) (result *v1alpha1.MongoDBArchiver, err error)

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

func (*FakeMongoDBArchivers) Delete

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

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

func (*FakeMongoDBArchivers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMongoDBArchivers) Get

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

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

func (*FakeMongoDBArchivers) List

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

func (*FakeMongoDBArchivers) Patch

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

Patch applies the patch and returns the patched mongoDBArchiver.

func (*FakeMongoDBArchivers) Update

func (c *FakeMongoDBArchivers) Update(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (result *v1alpha1.MongoDBArchiver, err error)

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

func (*FakeMongoDBArchivers) UpdateStatus

func (c *FakeMongoDBArchivers) UpdateStatus(ctx context.Context, mongoDBArchiver *v1alpha1.MongoDBArchiver, opts v1.UpdateOptions) (*v1alpha1.MongoDBArchiver, error)

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

func (*FakeMongoDBArchivers) Watch

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

type FakeMySQLArchivers added in v0.40.0

type FakeMySQLArchivers struct {
	Fake *FakeArchiverV1alpha1
	// contains filtered or unexported fields
}

FakeMySQLArchivers implements MySQLArchiverInterface

func (*FakeMySQLArchivers) Create added in v0.40.0

func (c *FakeMySQLArchivers) Create(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.CreateOptions) (result *v1alpha1.MySQLArchiver, err error)

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

func (*FakeMySQLArchivers) Delete added in v0.40.0

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

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

func (*FakeMySQLArchivers) DeleteCollection added in v0.40.0

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

DeleteCollection deletes a collection of objects.

func (*FakeMySQLArchivers) Get added in v0.40.0

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

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

func (*FakeMySQLArchivers) List added in v0.40.0

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

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

func (*FakeMySQLArchivers) Patch added in v0.40.0

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

Patch applies the patch and returns the patched mySQLArchiver.

func (*FakeMySQLArchivers) Update added in v0.40.0

func (c *FakeMySQLArchivers) Update(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (result *v1alpha1.MySQLArchiver, err error)

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

func (*FakeMySQLArchivers) UpdateStatus added in v0.40.0

func (c *FakeMySQLArchivers) UpdateStatus(ctx context.Context, mySQLArchiver *v1alpha1.MySQLArchiver, opts v1.UpdateOptions) (*v1alpha1.MySQLArchiver, error)

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

func (*FakeMySQLArchivers) Watch added in v0.40.0

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

type FakePostgresArchivers

type FakePostgresArchivers struct {
	Fake *FakeArchiverV1alpha1
	// contains filtered or unexported fields
}

FakePostgresArchivers implements PostgresArchiverInterface

func (*FakePostgresArchivers) Create

func (c *FakePostgresArchivers) Create(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.CreateOptions) (result *v1alpha1.PostgresArchiver, err error)

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

func (*FakePostgresArchivers) Delete

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

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

func (*FakePostgresArchivers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePostgresArchivers) Get

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

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

func (*FakePostgresArchivers) List

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

func (*FakePostgresArchivers) Patch

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

Patch applies the patch and returns the patched postgresArchiver.

func (*FakePostgresArchivers) Update

func (c *FakePostgresArchivers) Update(ctx context.Context, postgresArchiver *v1alpha1.PostgresArchiver, opts v1.UpdateOptions) (result *v1alpha1.PostgresArchiver, err error)

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

func (*FakePostgresArchivers) UpdateStatus

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

func (*FakePostgresArchivers) Watch

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

Jump to

Keyboard shortcuts

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