fake

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 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 FakeVolumeSnapshotDatas

type FakeVolumeSnapshotDatas struct {
	Fake *FakeVolumesnapshotV1
}

FakeVolumeSnapshotDatas implements VolumeSnapshotDataInterface

func (*FakeVolumeSnapshotDatas) Create

func (c *FakeVolumeSnapshotDatas) Create(volumeSnapshotData *snapshotv1.VolumeSnapshotData) (result *snapshotv1.VolumeSnapshotData, err error)

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

func (*FakeVolumeSnapshotDatas) Delete

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

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

func (*FakeVolumeSnapshotDatas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumeSnapshotDatas) Get

func (c *FakeVolumeSnapshotDatas) Get(name string, options v1.GetOptions) (result *snapshotv1.VolumeSnapshotData, err error)

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

func (*FakeVolumeSnapshotDatas) List

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

func (*FakeVolumeSnapshotDatas) Patch

func (c *FakeVolumeSnapshotDatas) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *snapshotv1.VolumeSnapshotData, err error)

Patch applies the patch and returns the patched volumeSnapshotData.

func (*FakeVolumeSnapshotDatas) Update

func (c *FakeVolumeSnapshotDatas) Update(volumeSnapshotData *snapshotv1.VolumeSnapshotData) (result *snapshotv1.VolumeSnapshotData, err error)

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

func (*FakeVolumeSnapshotDatas) UpdateStatus

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

func (*FakeVolumeSnapshotDatas) Watch

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

type FakeVolumeSnapshots

type FakeVolumeSnapshots struct {
	Fake *FakeVolumesnapshotV1
	// contains filtered or unexported fields
}

FakeVolumeSnapshots implements VolumeSnapshotInterface

func (*FakeVolumeSnapshots) Create

func (c *FakeVolumeSnapshots) Create(volumeSnapshot *snapshotv1.VolumeSnapshot) (result *snapshotv1.VolumeSnapshot, err error)

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

func (*FakeVolumeSnapshots) Delete

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

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

func (*FakeVolumeSnapshots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumeSnapshots) Get

func (c *FakeVolumeSnapshots) Get(name string, options v1.GetOptions) (result *snapshotv1.VolumeSnapshot, err error)

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

func (*FakeVolumeSnapshots) List

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

func (*FakeVolumeSnapshots) Patch

func (c *FakeVolumeSnapshots) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *snapshotv1.VolumeSnapshot, err error)

Patch applies the patch and returns the patched volumeSnapshot.

func (*FakeVolumeSnapshots) Update

func (c *FakeVolumeSnapshots) Update(volumeSnapshot *snapshotv1.VolumeSnapshot) (result *snapshotv1.VolumeSnapshot, err error)

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

func (*FakeVolumeSnapshots) UpdateStatus

func (c *FakeVolumeSnapshots) UpdateStatus(volumeSnapshot *snapshotv1.VolumeSnapshot) (*snapshotv1.VolumeSnapshot, error)

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

func (*FakeVolumeSnapshots) Watch

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

type FakeVolumesnapshotV1

type FakeVolumesnapshotV1 struct {
	*testing.Fake
}

func (*FakeVolumesnapshotV1) RESTClient

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

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

func (*FakeVolumesnapshotV1) VolumeSnapshotDatas

func (c *FakeVolumesnapshotV1) VolumeSnapshotDatas() v1.VolumeSnapshotDataInterface

func (*FakeVolumesnapshotV1) VolumeSnapshots

func (c *FakeVolumesnapshotV1) VolumeSnapshots(namespace string) v1.VolumeSnapshotInterface

Jump to

Keyboard shortcuts

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