fake

package
v1.4.6 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: AGPL-3.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 FakeDirectCSIDrives

type FakeDirectCSIDrives struct {
	Fake *FakeDirectV1beta1
}

FakeDirectCSIDrives implements DirectCSIDriveInterface

func (*FakeDirectCSIDrives) Create

func (c *FakeDirectCSIDrives) Create(ctx context.Context, directCSIDrive *v1beta1.DirectCSIDrive, opts v1.CreateOptions) (result *v1beta1.DirectCSIDrive, err error)

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

func (*FakeDirectCSIDrives) Delete

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

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

func (*FakeDirectCSIDrives) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDirectCSIDrives) Get

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

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

func (*FakeDirectCSIDrives) List

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

func (*FakeDirectCSIDrives) Patch

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

Patch applies the patch and returns the patched directCSIDrive.

func (*FakeDirectCSIDrives) Update

func (c *FakeDirectCSIDrives) Update(ctx context.Context, directCSIDrive *v1beta1.DirectCSIDrive, opts v1.UpdateOptions) (result *v1beta1.DirectCSIDrive, err error)

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

func (*FakeDirectCSIDrives) UpdateStatus

func (c *FakeDirectCSIDrives) UpdateStatus(ctx context.Context, directCSIDrive *v1beta1.DirectCSIDrive, opts v1.UpdateOptions) (*v1beta1.DirectCSIDrive, error)

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

func (*FakeDirectCSIDrives) Watch

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

type FakeDirectCSIVolumes

type FakeDirectCSIVolumes struct {
	Fake *FakeDirectV1beta1
}

FakeDirectCSIVolumes implements DirectCSIVolumeInterface

func (*FakeDirectCSIVolumes) Create

func (c *FakeDirectCSIVolumes) Create(ctx context.Context, directCSIVolume *v1beta1.DirectCSIVolume, opts v1.CreateOptions) (result *v1beta1.DirectCSIVolume, err error)

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

func (*FakeDirectCSIVolumes) Delete

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

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

func (*FakeDirectCSIVolumes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeDirectCSIVolumes) Get

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

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

func (*FakeDirectCSIVolumes) List

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

func (*FakeDirectCSIVolumes) Patch

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

Patch applies the patch and returns the patched directCSIVolume.

func (*FakeDirectCSIVolumes) Update

func (c *FakeDirectCSIVolumes) Update(ctx context.Context, directCSIVolume *v1beta1.DirectCSIVolume, opts v1.UpdateOptions) (result *v1beta1.DirectCSIVolume, err error)

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

func (*FakeDirectCSIVolumes) UpdateStatus

func (c *FakeDirectCSIVolumes) UpdateStatus(ctx context.Context, directCSIVolume *v1beta1.DirectCSIVolume, opts v1.UpdateOptions) (*v1beta1.DirectCSIVolume, error)

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

func (*FakeDirectCSIVolumes) Watch

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

type FakeDirectV1beta1

type FakeDirectV1beta1 struct {
	*testing.Fake
}

func (*FakeDirectV1beta1) DirectCSIDrives

func (c *FakeDirectV1beta1) DirectCSIDrives() v1beta1.DirectCSIDriveInterface

func (*FakeDirectV1beta1) DirectCSIVolumes

func (c *FakeDirectV1beta1) DirectCSIVolumes() v1beta1.DirectCSIVolumeInterface

func (*FakeDirectV1beta1) RESTClient

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