fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 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 FakeDatabaseIamBindings

type FakeDatabaseIamBindings struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeDatabaseIamBindings implements DatabaseIamBindingInterface

func (*FakeDatabaseIamBindings) Create

func (c *FakeDatabaseIamBindings) Create(ctx context.Context, databaseIamBinding *v1alpha1.DatabaseIamBinding, opts v1.CreateOptions) (result *v1alpha1.DatabaseIamBinding, err error)

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

func (*FakeDatabaseIamBindings) Delete

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

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

func (*FakeDatabaseIamBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabaseIamBindings) Get

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

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

func (*FakeDatabaseIamBindings) List

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

func (*FakeDatabaseIamBindings) Patch

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

Patch applies the patch and returns the patched databaseIamBinding.

func (*FakeDatabaseIamBindings) Update

func (c *FakeDatabaseIamBindings) Update(ctx context.Context, databaseIamBinding *v1alpha1.DatabaseIamBinding, opts v1.UpdateOptions) (result *v1alpha1.DatabaseIamBinding, err error)

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

func (*FakeDatabaseIamBindings) UpdateStatus

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

func (*FakeDatabaseIamBindings) Watch

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

type FakeDatabaseIamMembers

type FakeDatabaseIamMembers struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeDatabaseIamMembers implements DatabaseIamMemberInterface

func (*FakeDatabaseIamMembers) Create

func (c *FakeDatabaseIamMembers) Create(ctx context.Context, databaseIamMember *v1alpha1.DatabaseIamMember, opts v1.CreateOptions) (result *v1alpha1.DatabaseIamMember, err error)

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

func (*FakeDatabaseIamMembers) Delete

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

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

func (*FakeDatabaseIamMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabaseIamMembers) Get

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

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

func (*FakeDatabaseIamMembers) List

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

func (*FakeDatabaseIamMembers) Patch

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

Patch applies the patch and returns the patched databaseIamMember.

func (*FakeDatabaseIamMembers) Update

func (c *FakeDatabaseIamMembers) Update(ctx context.Context, databaseIamMember *v1alpha1.DatabaseIamMember, opts v1.UpdateOptions) (result *v1alpha1.DatabaseIamMember, err error)

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

func (*FakeDatabaseIamMembers) UpdateStatus

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

func (*FakeDatabaseIamMembers) Watch

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

type FakeDatabaseIamPolicies

type FakeDatabaseIamPolicies struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeDatabaseIamPolicies implements DatabaseIamPolicyInterface

func (*FakeDatabaseIamPolicies) Create

func (c *FakeDatabaseIamPolicies) Create(ctx context.Context, databaseIamPolicy *v1alpha1.DatabaseIamPolicy, opts v1.CreateOptions) (result *v1alpha1.DatabaseIamPolicy, err error)

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

func (*FakeDatabaseIamPolicies) Delete

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

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

func (*FakeDatabaseIamPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabaseIamPolicies) Get

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

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

func (*FakeDatabaseIamPolicies) List

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

func (*FakeDatabaseIamPolicies) Patch

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

Patch applies the patch and returns the patched databaseIamPolicy.

func (*FakeDatabaseIamPolicies) Update

func (c *FakeDatabaseIamPolicies) Update(ctx context.Context, databaseIamPolicy *v1alpha1.DatabaseIamPolicy, opts v1.UpdateOptions) (result *v1alpha1.DatabaseIamPolicy, err error)

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

func (*FakeDatabaseIamPolicies) UpdateStatus

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

func (*FakeDatabaseIamPolicies) Watch

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

type FakeDatabases

type FakeDatabases struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeDatabases implements DatabaseInterface

func (*FakeDatabases) Create

func (c *FakeDatabases) Create(ctx context.Context, database *v1alpha1.Database, opts v1.CreateOptions) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) Delete

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

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

func (*FakeDatabases) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDatabases) Get

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

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

func (*FakeDatabases) List

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

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

func (*FakeDatabases) Patch

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

Patch applies the patch and returns the patched database.

func (*FakeDatabases) Update

func (c *FakeDatabases) Update(ctx context.Context, database *v1alpha1.Database, opts v1.UpdateOptions) (result *v1alpha1.Database, err error)

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

func (*FakeDatabases) UpdateStatus

func (c *FakeDatabases) UpdateStatus(ctx context.Context, database *v1alpha1.Database, opts v1.UpdateOptions) (*v1alpha1.Database, error)

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

func (*FakeDatabases) Watch

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

type FakeInstanceIamBindings

type FakeInstanceIamBindings struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeInstanceIamBindings implements InstanceIamBindingInterface

func (*FakeInstanceIamBindings) Create

func (c *FakeInstanceIamBindings) Create(ctx context.Context, instanceIamBinding *v1alpha1.InstanceIamBinding, opts v1.CreateOptions) (result *v1alpha1.InstanceIamBinding, err error)

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

func (*FakeInstanceIamBindings) Delete

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

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

func (*FakeInstanceIamBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInstanceIamBindings) Get

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

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

func (*FakeInstanceIamBindings) List

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

func (*FakeInstanceIamBindings) Patch

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

Patch applies the patch and returns the patched instanceIamBinding.

func (*FakeInstanceIamBindings) Update

func (c *FakeInstanceIamBindings) Update(ctx context.Context, instanceIamBinding *v1alpha1.InstanceIamBinding, opts v1.UpdateOptions) (result *v1alpha1.InstanceIamBinding, err error)

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

func (*FakeInstanceIamBindings) UpdateStatus

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

func (*FakeInstanceIamBindings) Watch

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

type FakeInstanceIamMembers

type FakeInstanceIamMembers struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeInstanceIamMembers implements InstanceIamMemberInterface

func (*FakeInstanceIamMembers) Create

func (c *FakeInstanceIamMembers) Create(ctx context.Context, instanceIamMember *v1alpha1.InstanceIamMember, opts v1.CreateOptions) (result *v1alpha1.InstanceIamMember, err error)

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

func (*FakeInstanceIamMembers) Delete

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

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

func (*FakeInstanceIamMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInstanceIamMembers) Get

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

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

func (*FakeInstanceIamMembers) List

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

func (*FakeInstanceIamMembers) Patch

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

Patch applies the patch and returns the patched instanceIamMember.

func (*FakeInstanceIamMembers) Update

func (c *FakeInstanceIamMembers) Update(ctx context.Context, instanceIamMember *v1alpha1.InstanceIamMember, opts v1.UpdateOptions) (result *v1alpha1.InstanceIamMember, err error)

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

func (*FakeInstanceIamMembers) UpdateStatus

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

func (*FakeInstanceIamMembers) Watch

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

type FakeInstanceIamPolicies

type FakeInstanceIamPolicies struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeInstanceIamPolicies implements InstanceIamPolicyInterface

func (*FakeInstanceIamPolicies) Create

func (c *FakeInstanceIamPolicies) Create(ctx context.Context, instanceIamPolicy *v1alpha1.InstanceIamPolicy, opts v1.CreateOptions) (result *v1alpha1.InstanceIamPolicy, err error)

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

func (*FakeInstanceIamPolicies) Delete

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

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

func (*FakeInstanceIamPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInstanceIamPolicies) Get

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

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

func (*FakeInstanceIamPolicies) List

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

func (*FakeInstanceIamPolicies) Patch

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

Patch applies the patch and returns the patched instanceIamPolicy.

func (*FakeInstanceIamPolicies) Update

func (c *FakeInstanceIamPolicies) Update(ctx context.Context, instanceIamPolicy *v1alpha1.InstanceIamPolicy, opts v1.UpdateOptions) (result *v1alpha1.InstanceIamPolicy, err error)

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

func (*FakeInstanceIamPolicies) UpdateStatus

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

func (*FakeInstanceIamPolicies) Watch

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

type FakeInstances

type FakeInstances struct {
	Fake *FakeSpannerV1alpha1
	// contains filtered or unexported fields
}

FakeInstances implements InstanceInterface

func (*FakeInstances) Create

func (c *FakeInstances) Create(ctx context.Context, instance *v1alpha1.Instance, opts v1.CreateOptions) (result *v1alpha1.Instance, err error)

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

func (*FakeInstances) Delete

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

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

func (*FakeInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInstances) Get

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

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

func (*FakeInstances) List

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

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

func (*FakeInstances) Patch

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

Patch applies the patch and returns the patched instance.

func (*FakeInstances) Update

func (c *FakeInstances) Update(ctx context.Context, instance *v1alpha1.Instance, opts v1.UpdateOptions) (result *v1alpha1.Instance, err error)

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

func (*FakeInstances) UpdateStatus

func (c *FakeInstances) UpdateStatus(ctx context.Context, instance *v1alpha1.Instance, opts v1.UpdateOptions) (*v1alpha1.Instance, error)

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

func (*FakeInstances) Watch

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

type FakeSpannerV1alpha1

type FakeSpannerV1alpha1 struct {
	*testing.Fake
}

func (*FakeSpannerV1alpha1) DatabaseIamBindings

func (c *FakeSpannerV1alpha1) DatabaseIamBindings(namespace string) v1alpha1.DatabaseIamBindingInterface

func (*FakeSpannerV1alpha1) DatabaseIamMembers

func (c *FakeSpannerV1alpha1) DatabaseIamMembers(namespace string) v1alpha1.DatabaseIamMemberInterface

func (*FakeSpannerV1alpha1) DatabaseIamPolicies

func (c *FakeSpannerV1alpha1) DatabaseIamPolicies(namespace string) v1alpha1.DatabaseIamPolicyInterface

func (*FakeSpannerV1alpha1) Databases

func (c *FakeSpannerV1alpha1) Databases(namespace string) v1alpha1.DatabaseInterface

func (*FakeSpannerV1alpha1) InstanceIamBindings

func (c *FakeSpannerV1alpha1) InstanceIamBindings(namespace string) v1alpha1.InstanceIamBindingInterface

func (*FakeSpannerV1alpha1) InstanceIamMembers

func (c *FakeSpannerV1alpha1) InstanceIamMembers(namespace string) v1alpha1.InstanceIamMemberInterface

func (*FakeSpannerV1alpha1) InstanceIamPolicies

func (c *FakeSpannerV1alpha1) InstanceIamPolicies(namespace string) v1alpha1.InstanceIamPolicyInterface

func (*FakeSpannerV1alpha1) Instances

func (c *FakeSpannerV1alpha1) Instances(namespace string) v1alpha1.InstanceInterface

func (*FakeSpannerV1alpha1) RESTClient

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