fake

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2019 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 FakeSnapshotV1alpha1 added in v1.2.0

type FakeSnapshotV1alpha1 struct {
	*testing.Fake
}

func (*FakeSnapshotV1alpha1) RESTClient added in v1.2.0

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

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

func (*FakeSnapshotV1alpha1) VolumeSnapshotClasses added in v1.2.0

func (c *FakeSnapshotV1alpha1) VolumeSnapshotClasses() v1alpha1.VolumeSnapshotClassInterface

func (*FakeSnapshotV1alpha1) VolumeSnapshotContents added in v1.2.0

func (c *FakeSnapshotV1alpha1) VolumeSnapshotContents() v1alpha1.VolumeSnapshotContentInterface

func (*FakeSnapshotV1alpha1) VolumeSnapshots added in v1.2.0

func (c *FakeSnapshotV1alpha1) VolumeSnapshots(namespace string) v1alpha1.VolumeSnapshotInterface

type FakeVolumeSnapshotClasses

type FakeVolumeSnapshotClasses struct {
	Fake *FakeSnapshotV1alpha1
}

FakeVolumeSnapshotClasses implements VolumeSnapshotClassInterface

func (*FakeVolumeSnapshotClasses) Create

func (c *FakeVolumeSnapshotClasses) Create(volumeSnapshotClass *v1alpha1.VolumeSnapshotClass) (result *v1alpha1.VolumeSnapshotClass, err error)

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

func (*FakeVolumeSnapshotClasses) Delete

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

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

func (*FakeVolumeSnapshotClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumeSnapshotClasses) Get

func (c *FakeVolumeSnapshotClasses) Get(name string, options v1.GetOptions) (result *v1alpha1.VolumeSnapshotClass, err error)

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

func (*FakeVolumeSnapshotClasses) List

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

func (*FakeVolumeSnapshotClasses) Patch

func (c *FakeVolumeSnapshotClasses) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.VolumeSnapshotClass, err error)

Patch applies the patch and returns the patched volumeSnapshotClass.

func (*FakeVolumeSnapshotClasses) Update

func (c *FakeVolumeSnapshotClasses) Update(volumeSnapshotClass *v1alpha1.VolumeSnapshotClass) (result *v1alpha1.VolumeSnapshotClass, err error)

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

func (*FakeVolumeSnapshotClasses) Watch

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

type FakeVolumeSnapshotContents

type FakeVolumeSnapshotContents struct {
	Fake *FakeSnapshotV1alpha1
}

FakeVolumeSnapshotContents implements VolumeSnapshotContentInterface

func (*FakeVolumeSnapshotContents) Create

func (c *FakeVolumeSnapshotContents) Create(volumeSnapshotContent *v1alpha1.VolumeSnapshotContent) (result *v1alpha1.VolumeSnapshotContent, err error)

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

func (*FakeVolumeSnapshotContents) Delete

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

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

func (*FakeVolumeSnapshotContents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumeSnapshotContents) Get

func (c *FakeVolumeSnapshotContents) Get(name string, options v1.GetOptions) (result *v1alpha1.VolumeSnapshotContent, err error)

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

func (*FakeVolumeSnapshotContents) List

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

func (*FakeVolumeSnapshotContents) Patch

func (c *FakeVolumeSnapshotContents) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.VolumeSnapshotContent, err error)

Patch applies the patch and returns the patched volumeSnapshotContent.

func (*FakeVolumeSnapshotContents) Update

func (c *FakeVolumeSnapshotContents) Update(volumeSnapshotContent *v1alpha1.VolumeSnapshotContent) (result *v1alpha1.VolumeSnapshotContent, err error)

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

func (*FakeVolumeSnapshotContents) Watch

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

type FakeVolumeSnapshots

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

FakeVolumeSnapshots implements VolumeSnapshotInterface

func (*FakeVolumeSnapshots) Create

func (c *FakeVolumeSnapshots) Create(volumeSnapshot *v1alpha1.VolumeSnapshot) (result *v1alpha1.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 *v1alpha1.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

func (c *FakeVolumeSnapshots) List(opts v1.ListOptions) (result *v1alpha1.VolumeSnapshotList, err error)

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 *v1alpha1.VolumeSnapshot, err error)

Patch applies the patch and returns the patched volumeSnapshot.

func (*FakeVolumeSnapshots) Update

func (c *FakeVolumeSnapshots) Update(volumeSnapshot *v1alpha1.VolumeSnapshot) (result *v1alpha1.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 *v1alpha1.VolumeSnapshot) (*v1alpha1.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.

Jump to

Keyboard shortcuts

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