fake

package
v0.0.0-...-c5dc7fc Latest Latest
Warning

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

Go to latest
Published: Mar 1, 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 FakeSnapshotPolicies

type FakeSnapshotPolicies struct {
	Fake *FakeSnapshotpolicyV1alpha1
	// contains filtered or unexported fields
}

FakeSnapshotPolicies implements SnapshotPolicyInterface

func (*FakeSnapshotPolicies) Create

func (c *FakeSnapshotPolicies) Create(snapshotPolicy *v1alpha1.SnapshotPolicy) (result *v1alpha1.SnapshotPolicy, err error)

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

func (*FakeSnapshotPolicies) Delete

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

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

func (*FakeSnapshotPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSnapshotPolicies) Get

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

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

func (*FakeSnapshotPolicies) List

func (c *FakeSnapshotPolicies) List(opts v1.ListOptions) (result *v1alpha1.SnapshotPolicyList, err error)

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

func (*FakeSnapshotPolicies) Patch

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

Patch applies the patch and returns the patched snapshotPolicy.

func (*FakeSnapshotPolicies) Update

func (c *FakeSnapshotPolicies) Update(snapshotPolicy *v1alpha1.SnapshotPolicy) (result *v1alpha1.SnapshotPolicy, err error)

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

func (*FakeSnapshotPolicies) UpdateStatus

func (c *FakeSnapshotPolicies) UpdateStatus(snapshotPolicy *v1alpha1.SnapshotPolicy) (*v1alpha1.SnapshotPolicy, error)

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

func (*FakeSnapshotPolicies) Watch

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

type FakeSnapshotpolicyV1alpha1

type FakeSnapshotpolicyV1alpha1 struct {
	*testing.Fake
}

func (*FakeSnapshotpolicyV1alpha1) RESTClient

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

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

func (*FakeSnapshotpolicyV1alpha1) SnapshotPolicies

func (c *FakeSnapshotpolicyV1alpha1) SnapshotPolicies(namespace string) v1alpha1.SnapshotPolicyInterface

Jump to

Keyboard shortcuts

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