fake

package
v0.12.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 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 FakeDataTypes added in v0.12.0

type FakeDataTypes struct {
	Fake *FakeSchemasV1alpha4
	// contains filtered or unexported fields
}

FakeDataTypes implements DataTypeInterface

func (*FakeDataTypes) Create added in v0.12.0

func (c *FakeDataTypes) Create(ctx context.Context, dataType *v1alpha4.DataType, opts v1.CreateOptions) (result *v1alpha4.DataType, err error)

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

func (*FakeDataTypes) Delete added in v0.12.0

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

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

func (*FakeDataTypes) DeleteCollection added in v0.12.0

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

DeleteCollection deletes a collection of objects.

func (*FakeDataTypes) Get added in v0.12.0

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

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

func (*FakeDataTypes) List added in v0.12.0

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

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

func (*FakeDataTypes) Patch added in v0.12.0

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

Patch applies the patch and returns the patched dataType.

func (*FakeDataTypes) Update added in v0.12.0

func (c *FakeDataTypes) Update(ctx context.Context, dataType *v1alpha4.DataType, opts v1.UpdateOptions) (result *v1alpha4.DataType, err error)

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

func (*FakeDataTypes) UpdateStatus added in v0.12.0

func (c *FakeDataTypes) UpdateStatus(ctx context.Context, dataType *v1alpha4.DataType, opts v1.UpdateOptions) (*v1alpha4.DataType, error)

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

func (*FakeDataTypes) Watch added in v0.12.0

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

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

type FakeSchemasV1alpha4 struct {
	*testing.Fake
}

func (*FakeSchemasV1alpha4) DataTypes added in v0.12.0

func (c *FakeSchemasV1alpha4) DataTypes(namespace string) v1alpha4.DataTypeInterface

func (*FakeSchemasV1alpha4) Migrations

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

func (*FakeSchemasV1alpha4) RESTClient

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

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