fake

package
v1.72.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 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 FakeBigQueryDatasets

type FakeBigQueryDatasets struct {
	Fake *FakeBigqueryV1beta1
	// contains filtered or unexported fields
}

FakeBigQueryDatasets implements BigQueryDatasetInterface

func (*FakeBigQueryDatasets) Create

func (c *FakeBigQueryDatasets) Create(ctx context.Context, bigQueryDataset *v1beta1.BigQueryDataset, opts v1.CreateOptions) (result *v1beta1.BigQueryDataset, err error)

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

func (*FakeBigQueryDatasets) Delete

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

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

func (*FakeBigQueryDatasets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBigQueryDatasets) Get

func (c *FakeBigQueryDatasets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BigQueryDataset, err error)

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

func (*FakeBigQueryDatasets) List

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

func (*FakeBigQueryDatasets) Patch

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

Patch applies the patch and returns the patched bigQueryDataset.

func (*FakeBigQueryDatasets) Update

func (c *FakeBigQueryDatasets) Update(ctx context.Context, bigQueryDataset *v1beta1.BigQueryDataset, opts v1.UpdateOptions) (result *v1beta1.BigQueryDataset, err error)

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

func (*FakeBigQueryDatasets) UpdateStatus

func (c *FakeBigQueryDatasets) UpdateStatus(ctx context.Context, bigQueryDataset *v1beta1.BigQueryDataset, opts v1.UpdateOptions) (*v1beta1.BigQueryDataset, error)

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

func (*FakeBigQueryDatasets) Watch

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

type FakeBigQueryJobs

type FakeBigQueryJobs struct {
	Fake *FakeBigqueryV1beta1
	// contains filtered or unexported fields
}

FakeBigQueryJobs implements BigQueryJobInterface

func (*FakeBigQueryJobs) Create

func (c *FakeBigQueryJobs) Create(ctx context.Context, bigQueryJob *v1beta1.BigQueryJob, opts v1.CreateOptions) (result *v1beta1.BigQueryJob, err error)

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

func (*FakeBigQueryJobs) Delete

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

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

func (*FakeBigQueryJobs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBigQueryJobs) Get

func (c *FakeBigQueryJobs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BigQueryJob, err error)

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

func (*FakeBigQueryJobs) List

func (c *FakeBigQueryJobs) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BigQueryJobList, err error)

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

func (*FakeBigQueryJobs) Patch

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

Patch applies the patch and returns the patched bigQueryJob.

func (*FakeBigQueryJobs) Update

func (c *FakeBigQueryJobs) Update(ctx context.Context, bigQueryJob *v1beta1.BigQueryJob, opts v1.UpdateOptions) (result *v1beta1.BigQueryJob, err error)

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

func (*FakeBigQueryJobs) UpdateStatus

func (c *FakeBigQueryJobs) UpdateStatus(ctx context.Context, bigQueryJob *v1beta1.BigQueryJob, opts v1.UpdateOptions) (*v1beta1.BigQueryJob, error)

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

func (*FakeBigQueryJobs) Watch

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

type FakeBigQueryTables

type FakeBigQueryTables struct {
	Fake *FakeBigqueryV1beta1
	// contains filtered or unexported fields
}

FakeBigQueryTables implements BigQueryTableInterface

func (*FakeBigQueryTables) Create

func (c *FakeBigQueryTables) Create(ctx context.Context, bigQueryTable *v1beta1.BigQueryTable, opts v1.CreateOptions) (result *v1beta1.BigQueryTable, err error)

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

func (*FakeBigQueryTables) Delete

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

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

func (*FakeBigQueryTables) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBigQueryTables) Get

func (c *FakeBigQueryTables) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BigQueryTable, err error)

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

func (*FakeBigQueryTables) List

func (c *FakeBigQueryTables) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BigQueryTableList, err error)

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

func (*FakeBigQueryTables) Patch

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

Patch applies the patch and returns the patched bigQueryTable.

func (*FakeBigQueryTables) Update

func (c *FakeBigQueryTables) Update(ctx context.Context, bigQueryTable *v1beta1.BigQueryTable, opts v1.UpdateOptions) (result *v1beta1.BigQueryTable, err error)

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

func (*FakeBigQueryTables) UpdateStatus

func (c *FakeBigQueryTables) UpdateStatus(ctx context.Context, bigQueryTable *v1beta1.BigQueryTable, opts v1.UpdateOptions) (*v1beta1.BigQueryTable, error)

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

func (*FakeBigQueryTables) Watch

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

type FakeBigqueryV1beta1

type FakeBigqueryV1beta1 struct {
	*testing.Fake
}

func (*FakeBigqueryV1beta1) BigQueryDatasets

func (c *FakeBigqueryV1beta1) BigQueryDatasets(namespace string) v1beta1.BigQueryDatasetInterface

func (*FakeBigqueryV1beta1) BigQueryJobs

func (c *FakeBigqueryV1beta1) BigQueryJobs(namespace string) v1beta1.BigQueryJobInterface

func (*FakeBigqueryV1beta1) BigQueryTables

func (c *FakeBigqueryV1beta1) BigQueryTables(namespace string) v1beta1.BigQueryTableInterface

func (*FakeBigqueryV1beta1) RESTClient

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