fake

package
v0.0.0-...-1b45e6a Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 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 FakeDownloads

type FakeDownloads struct {
	Fake *FakeVeleropluginV1
	// contains filtered or unexported fields
}

FakeDownloads implements DownloadInterface

func (*FakeDownloads) Create

func (c *FakeDownloads) Create(download *veleropluginv1.Download) (result *veleropluginv1.Download, err error)

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

func (*FakeDownloads) Delete

func (c *FakeDownloads) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeDownloads) DeleteCollection

func (c *FakeDownloads) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeDownloads) Get

func (c *FakeDownloads) Get(name string, options v1.GetOptions) (result *veleropluginv1.Download, err error)

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

func (*FakeDownloads) List

func (c *FakeDownloads) List(opts v1.ListOptions) (result *veleropluginv1.DownloadList, err error)

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

func (*FakeDownloads) Patch

func (c *FakeDownloads) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *veleropluginv1.Download, err error)

Patch applies the patch and returns the patched download.

func (*FakeDownloads) Update

func (c *FakeDownloads) Update(download *veleropluginv1.Download) (result *veleropluginv1.Download, err error)

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

func (*FakeDownloads) UpdateStatus

func (c *FakeDownloads) UpdateStatus(download *veleropluginv1.Download) (*veleropluginv1.Download, error)

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

func (*FakeDownloads) Watch

func (c *FakeDownloads) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeUploads

type FakeUploads struct {
	Fake *FakeVeleropluginV1
	// contains filtered or unexported fields
}

FakeUploads implements UploadInterface

func (*FakeUploads) Create

func (c *FakeUploads) Create(upload *veleropluginv1.Upload) (result *veleropluginv1.Upload, err error)

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

func (*FakeUploads) Delete

func (c *FakeUploads) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeUploads) DeleteCollection

func (c *FakeUploads) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeUploads) Get

func (c *FakeUploads) Get(name string, options v1.GetOptions) (result *veleropluginv1.Upload, err error)

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

func (*FakeUploads) List

func (c *FakeUploads) List(opts v1.ListOptions) (result *veleropluginv1.UploadList, err error)

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

func (*FakeUploads) Patch

func (c *FakeUploads) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *veleropluginv1.Upload, err error)

Patch applies the patch and returns the patched upload.

func (*FakeUploads) Update

func (c *FakeUploads) Update(upload *veleropluginv1.Upload) (result *veleropluginv1.Upload, err error)

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

func (*FakeUploads) UpdateStatus

func (c *FakeUploads) UpdateStatus(upload *veleropluginv1.Upload) (*veleropluginv1.Upload, error)

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

func (*FakeUploads) Watch

func (c *FakeUploads) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeVeleropluginV1

type FakeVeleropluginV1 struct {
	*testing.Fake
}

func (*FakeVeleropluginV1) Downloads

func (c *FakeVeleropluginV1) Downloads(namespace string) v1.DownloadInterface

func (*FakeVeleropluginV1) RESTClient

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

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

func (*FakeVeleropluginV1) Uploads

func (c *FakeVeleropluginV1) Uploads(namespace string) v1.UploadInterface

Jump to

Keyboard shortcuts

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