fake

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2020 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 FakeMigrations

type FakeMigrations struct {
	Fake *FakeSchemasv1alpha4
	// contains filtered or unexported fields
}

FakeMigrations implements MigrationInterface

func (*FakeMigrations) Create

func (c *FakeMigrations) Create(ctx context.Context, migration *v1alpha4.Migration, opts v1.CreateOptions) (result *v1alpha4.Migration, err error)

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

func (*FakeMigrations) Delete

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

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

func (*FakeMigrations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMigrations) Get

func (c *FakeMigrations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha4.Migration, err error)

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

func (*FakeMigrations) List

func (c *FakeMigrations) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha4.MigrationList, err error)

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

func (*FakeMigrations) Patch

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

Patch applies the patch and returns the patched migration.

func (*FakeMigrations) Update

func (c *FakeMigrations) Update(ctx context.Context, migration *v1alpha4.Migration, opts v1.UpdateOptions) (result *v1alpha4.Migration, err error)

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

func (*FakeMigrations) UpdateStatus

func (c *FakeMigrations) UpdateStatus(ctx context.Context, migration *v1alpha4.Migration, opts v1.UpdateOptions) (*v1alpha4.Migration, error)

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

func (*FakeMigrations) Watch

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

type FakeSchemasv1alpha4 added in v0.9.0

type FakeSchemasv1alpha4 struct {
	*testing.Fake
}

func (*FakeSchemasv1alpha4) Migrations added in v0.9.0

func (c *FakeSchemasv1alpha4) Migrations(namespace string) v1alpha4.MigrationInterface

func (*FakeSchemasv1alpha4) RESTClient added in v0.9.0

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

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

func (*FakeSchemasv1alpha4) Tables added in v0.9.0

func (c *FakeSchemasv1alpha4) Tables(namespace string) v1alpha4.TableInterface

type FakeTables

type FakeTables struct {
	Fake *FakeSchemasv1alpha4
	// contains filtered or unexported fields
}

FakeTables implements TableInterface

func (*FakeTables) Create

func (c *FakeTables) Create(ctx context.Context, table *v1alpha4.Table, opts v1.CreateOptions) (result *v1alpha4.Table, err error)

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

func (*FakeTables) Delete

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

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

func (*FakeTables) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTables) Get

func (c *FakeTables) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha4.Table, err error)

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

func (*FakeTables) List

func (c *FakeTables) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha4.TableList, err error)

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

func (*FakeTables) Patch

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

Patch applies the patch and returns the patched table.

func (*FakeTables) Update

func (c *FakeTables) Update(ctx context.Context, table *v1alpha4.Table, opts v1.UpdateOptions) (result *v1alpha4.Table, err error)

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

func (*FakeTables) UpdateStatus

func (c *FakeTables) UpdateStatus(ctx context.Context, table *v1alpha4.Table, opts v1.UpdateOptions) (*v1alpha4.Table, error)

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

func (*FakeTables) Watch

func (c *FakeTables) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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