fake

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 9 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 FakeFilestoreBackups

type FakeFilestoreBackups struct {
	Fake *FakeFilestoreV1beta1
	// contains filtered or unexported fields
}

FakeFilestoreBackups implements FilestoreBackupInterface

func (*FakeFilestoreBackups) Create

func (c *FakeFilestoreBackups) Create(ctx context.Context, filestoreBackup *v1beta1.FilestoreBackup, opts v1.CreateOptions) (result *v1beta1.FilestoreBackup, err error)

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

func (*FakeFilestoreBackups) Delete

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

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

func (*FakeFilestoreBackups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFilestoreBackups) Get

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

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

func (*FakeFilestoreBackups) List

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

func (*FakeFilestoreBackups) Patch

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

Patch applies the patch and returns the patched filestoreBackup.

func (*FakeFilestoreBackups) Update

func (c *FakeFilestoreBackups) Update(ctx context.Context, filestoreBackup *v1beta1.FilestoreBackup, opts v1.UpdateOptions) (result *v1beta1.FilestoreBackup, err error)

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

func (*FakeFilestoreBackups) UpdateStatus

func (c *FakeFilestoreBackups) UpdateStatus(ctx context.Context, filestoreBackup *v1beta1.FilestoreBackup, opts v1.UpdateOptions) (*v1beta1.FilestoreBackup, error)

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

func (*FakeFilestoreBackups) Watch

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

type FakeFilestoreInstances

type FakeFilestoreInstances struct {
	Fake *FakeFilestoreV1beta1
	// contains filtered or unexported fields
}

FakeFilestoreInstances implements FilestoreInstanceInterface

func (*FakeFilestoreInstances) Create

func (c *FakeFilestoreInstances) Create(ctx context.Context, filestoreInstance *v1beta1.FilestoreInstance, opts v1.CreateOptions) (result *v1beta1.FilestoreInstance, err error)

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

func (*FakeFilestoreInstances) Delete

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

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

func (*FakeFilestoreInstances) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFilestoreInstances) Get

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

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

func (*FakeFilestoreInstances) List

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

func (*FakeFilestoreInstances) Patch

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

Patch applies the patch and returns the patched filestoreInstance.

func (*FakeFilestoreInstances) Update

func (c *FakeFilestoreInstances) Update(ctx context.Context, filestoreInstance *v1beta1.FilestoreInstance, opts v1.UpdateOptions) (result *v1beta1.FilestoreInstance, err error)

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

func (*FakeFilestoreInstances) UpdateStatus

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

func (*FakeFilestoreInstances) Watch

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

type FakeFilestoreV1beta1

type FakeFilestoreV1beta1 struct {
	*testing.Fake
}

func (*FakeFilestoreV1beta1) FilestoreBackups

func (c *FakeFilestoreV1beta1) FilestoreBackups(namespace string) v1beta1.FilestoreBackupInterface

func (*FakeFilestoreV1beta1) FilestoreInstances

func (c *FakeFilestoreV1beta1) FilestoreInstances(namespace string) v1beta1.FilestoreInstanceInterface

func (*FakeFilestoreV1beta1) RESTClient

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