fake

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 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 FakeSnapshotV1beta1

type FakeSnapshotV1beta1 struct {
	*testing.Fake
}

func (*FakeSnapshotV1beta1) RESTClient

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

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

func (*FakeSnapshotV1beta1) VolumeSnapshotClasses

func (c *FakeSnapshotV1beta1) VolumeSnapshotClasses() v1beta1.VolumeSnapshotClassInterface

func (*FakeSnapshotV1beta1) VolumeSnapshotContents

func (c *FakeSnapshotV1beta1) VolumeSnapshotContents() v1beta1.VolumeSnapshotContentInterface

func (*FakeSnapshotV1beta1) VolumeSnapshots

func (c *FakeSnapshotV1beta1) VolumeSnapshots(namespace string) v1beta1.VolumeSnapshotInterface

type FakeVolumeSnapshotClasses

type FakeVolumeSnapshotClasses struct {
	Fake *FakeSnapshotV1beta1
}

FakeVolumeSnapshotClasses implements VolumeSnapshotClassInterface

func (*FakeVolumeSnapshotClasses) Create

func (c *FakeVolumeSnapshotClasses) Create(ctx context.Context, volumeSnapshotClass *v1beta1.VolumeSnapshotClass, opts v1.CreateOptions) (result *v1beta1.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

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

func (*FakeVolumeSnapshotClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumeSnapshotClasses) Get

func (c *FakeVolumeSnapshotClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeSnapshotClass, err error)

Patch applies the patch and returns the patched volumeSnapshotClass.

func (*FakeVolumeSnapshotClasses) Update

func (c *FakeVolumeSnapshotClasses) Update(ctx context.Context, volumeSnapshotClass *v1beta1.VolumeSnapshotClass, opts v1.UpdateOptions) (result *v1beta1.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 *FakeSnapshotV1beta1
}

FakeVolumeSnapshotContents implements VolumeSnapshotContentInterface

func (*FakeVolumeSnapshotContents) Create

func (c *FakeVolumeSnapshotContents) Create(ctx context.Context, volumeSnapshotContent *v1beta1.VolumeSnapshotContent, opts v1.CreateOptions) (result *v1beta1.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

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

func (*FakeVolumeSnapshotContents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVolumeSnapshotContents) Get

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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeSnapshotContent, err error)

Patch applies the patch and returns the patched volumeSnapshotContent.

func (*FakeVolumeSnapshotContents) Update

func (c *FakeVolumeSnapshotContents) Update(ctx context.Context, volumeSnapshotContent *v1beta1.VolumeSnapshotContent, opts v1.UpdateOptions) (result *v1beta1.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) UpdateStatus

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

func (*FakeVolumeSnapshotContents) Watch

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

type FakeVolumeSnapshots

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

FakeVolumeSnapshots implements VolumeSnapshotInterface

func (*FakeVolumeSnapshots) Create

func (c *FakeVolumeSnapshots) Create(ctx context.Context, volumeSnapshot *v1beta1.VolumeSnapshot, opts v1.CreateOptions) (result *v1beta1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVolumeSnapshots) Get

func (c *FakeVolumeSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.VolumeSnapshot, err error)

Patch applies the patch and returns the patched volumeSnapshot.

func (*FakeVolumeSnapshots) Update

func (c *FakeVolumeSnapshots) Update(ctx context.Context, volumeSnapshot *v1beta1.VolumeSnapshot, opts v1.UpdateOptions) (result *v1beta1.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(ctx context.Context, volumeSnapshot *v1beta1.VolumeSnapshot, opts v1.UpdateOptions) (*v1beta1.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