fake

package
v0.0.0-...-8b80ef8 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 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 FakeSnapshotGroups

type FakeSnapshotGroups struct {
	Fake *FakeSnapshotgroupV1
	// contains filtered or unexported fields
}

FakeSnapshotGroups implements SnapshotGroupInterface

func (*FakeSnapshotGroups) Create

func (c *FakeSnapshotGroups) Create(ctx context.Context, snapshotGroup *v1.SnapshotGroup, opts metav1.CreateOptions) (result *v1.SnapshotGroup, err error)

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

func (*FakeSnapshotGroups) Delete

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

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

func (*FakeSnapshotGroups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSnapshotGroups) Get

func (c *FakeSnapshotGroups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.SnapshotGroup, err error)

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

func (*FakeSnapshotGroups) List

func (c *FakeSnapshotGroups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.SnapshotGroupList, err error)

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

func (*FakeSnapshotGroups) Patch

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

Patch applies the patch and returns the patched snapshotGroup.

func (*FakeSnapshotGroups) Update

func (c *FakeSnapshotGroups) Update(ctx context.Context, snapshotGroup *v1.SnapshotGroup, opts metav1.UpdateOptions) (result *v1.SnapshotGroup, err error)

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

func (*FakeSnapshotGroups) Watch

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

type FakeSnapshotgroupV1

type FakeSnapshotgroupV1 struct {
	*testing.Fake
}

func (*FakeSnapshotgroupV1) RESTClient

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

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

func (*FakeSnapshotgroupV1) SnapshotGroups

func (c *FakeSnapshotgroupV1) SnapshotGroups(namespace string) v1.SnapshotGroupInterface

Jump to

Keyboard shortcuts

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