fake

package
v1.12.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 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 FakeDataDownloads

type FakeDataDownloads struct {
	Fake *FakeVeleroV2alpha1
	// contains filtered or unexported fields
}

FakeDataDownloads implements DataDownloadInterface

func (*FakeDataDownloads) Create

func (c *FakeDataDownloads) Create(ctx context.Context, dataDownload *v2alpha1.DataDownload, opts v1.CreateOptions) (result *v2alpha1.DataDownload, err error)

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

func (*FakeDataDownloads) Delete

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

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

func (*FakeDataDownloads) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDataDownloads) Get

func (c *FakeDataDownloads) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.DataDownload, err error)

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

func (*FakeDataDownloads) List

func (c *FakeDataDownloads) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.DataDownloadList, err error)

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

func (*FakeDataDownloads) Patch

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

Patch applies the patch and returns the patched dataDownload.

func (*FakeDataDownloads) Update

func (c *FakeDataDownloads) Update(ctx context.Context, dataDownload *v2alpha1.DataDownload, opts v1.UpdateOptions) (result *v2alpha1.DataDownload, err error)

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

func (*FakeDataDownloads) UpdateStatus

func (c *FakeDataDownloads) UpdateStatus(ctx context.Context, dataDownload *v2alpha1.DataDownload, opts v1.UpdateOptions) (*v2alpha1.DataDownload, error)

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

func (*FakeDataDownloads) Watch

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

type FakeDataUploads

type FakeDataUploads struct {
	Fake *FakeVeleroV2alpha1
	// contains filtered or unexported fields
}

FakeDataUploads implements DataUploadInterface

func (*FakeDataUploads) Create

func (c *FakeDataUploads) Create(ctx context.Context, dataUpload *v2alpha1.DataUpload, opts v1.CreateOptions) (result *v2alpha1.DataUpload, err error)

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

func (*FakeDataUploads) Delete

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

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

func (*FakeDataUploads) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDataUploads) Get

func (c *FakeDataUploads) Get(ctx context.Context, name string, options v1.GetOptions) (result *v2alpha1.DataUpload, err error)

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

func (*FakeDataUploads) List

func (c *FakeDataUploads) List(ctx context.Context, opts v1.ListOptions) (result *v2alpha1.DataUploadList, err error)

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

func (*FakeDataUploads) Patch

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

Patch applies the patch and returns the patched dataUpload.

func (*FakeDataUploads) Update

func (c *FakeDataUploads) Update(ctx context.Context, dataUpload *v2alpha1.DataUpload, opts v1.UpdateOptions) (result *v2alpha1.DataUpload, err error)

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

func (*FakeDataUploads) UpdateStatus

func (c *FakeDataUploads) UpdateStatus(ctx context.Context, dataUpload *v2alpha1.DataUpload, opts v1.UpdateOptions) (*v2alpha1.DataUpload, error)

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

func (*FakeDataUploads) Watch

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

type FakeVeleroV2alpha1

type FakeVeleroV2alpha1 struct {
	*testing.Fake
}

func (*FakeVeleroV2alpha1) DataDownloads

func (c *FakeVeleroV2alpha1) DataDownloads(namespace string) v2alpha1.DataDownloadInterface

func (*FakeVeleroV2alpha1) DataUploads

func (c *FakeVeleroV2alpha1) DataUploads(namespace string) v2alpha1.DataUploadInterface

func (*FakeVeleroV2alpha1) RESTClient

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