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 FakeSpannerDatabases

type FakeSpannerDatabases struct {
	Fake *FakeSpannerV1beta1
	// contains filtered or unexported fields
}

FakeSpannerDatabases implements SpannerDatabaseInterface

func (*FakeSpannerDatabases) Create

func (c *FakeSpannerDatabases) Create(ctx context.Context, spannerDatabase *v1beta1.SpannerDatabase, opts v1.CreateOptions) (result *v1beta1.SpannerDatabase, err error)

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

func (*FakeSpannerDatabases) Delete

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

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

func (*FakeSpannerDatabases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSpannerDatabases) Get

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

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

func (*FakeSpannerDatabases) List

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

func (*FakeSpannerDatabases) Patch

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

Patch applies the patch and returns the patched spannerDatabase.

func (*FakeSpannerDatabases) Update

func (c *FakeSpannerDatabases) Update(ctx context.Context, spannerDatabase *v1beta1.SpannerDatabase, opts v1.UpdateOptions) (result *v1beta1.SpannerDatabase, err error)

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

func (*FakeSpannerDatabases) UpdateStatus

func (c *FakeSpannerDatabases) UpdateStatus(ctx context.Context, spannerDatabase *v1beta1.SpannerDatabase, opts v1.UpdateOptions) (*v1beta1.SpannerDatabase, error)

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

func (*FakeSpannerDatabases) Watch

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

type FakeSpannerInstances

type FakeSpannerInstances struct {
	Fake *FakeSpannerV1beta1
	// contains filtered or unexported fields
}

FakeSpannerInstances implements SpannerInstanceInterface

func (*FakeSpannerInstances) Create

func (c *FakeSpannerInstances) Create(ctx context.Context, spannerInstance *v1beta1.SpannerInstance, opts v1.CreateOptions) (result *v1beta1.SpannerInstance, err error)

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

func (*FakeSpannerInstances) Delete

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

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

func (*FakeSpannerInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSpannerInstances) Get

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

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

func (*FakeSpannerInstances) List

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

func (*FakeSpannerInstances) Patch

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

Patch applies the patch and returns the patched spannerInstance.

func (*FakeSpannerInstances) Update

func (c *FakeSpannerInstances) Update(ctx context.Context, spannerInstance *v1beta1.SpannerInstance, opts v1.UpdateOptions) (result *v1beta1.SpannerInstance, err error)

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

func (*FakeSpannerInstances) UpdateStatus

func (c *FakeSpannerInstances) UpdateStatus(ctx context.Context, spannerInstance *v1beta1.SpannerInstance, opts v1.UpdateOptions) (*v1beta1.SpannerInstance, error)

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

func (*FakeSpannerInstances) Watch

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

type FakeSpannerV1beta1

type FakeSpannerV1beta1 struct {
	*testing.Fake
}

func (*FakeSpannerV1beta1) RESTClient

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

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

func (*FakeSpannerV1beta1) SpannerDatabases

func (c *FakeSpannerV1beta1) SpannerDatabases(namespace string) v1beta1.SpannerDatabaseInterface

func (*FakeSpannerV1beta1) SpannerInstances

func (c *FakeSpannerV1beta1) SpannerInstances(namespace string) v1beta1.SpannerInstanceInterface

Jump to

Keyboard shortcuts

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