fake

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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 FakeMigrationV1alpha1

type FakeMigrationV1alpha1 struct {
	*testing.Fake
}

func (*FakeMigrationV1alpha1) RESTClient

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

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

func (*FakeMigrationV1alpha1) StorageStates

func (*FakeMigrationV1alpha1) StorageVersionMigrations

func (c *FakeMigrationV1alpha1) StorageVersionMigrations() v1alpha1.StorageVersionMigrationInterface

type FakeStorageStates

type FakeStorageStates struct {
	Fake *FakeMigrationV1alpha1
}

FakeStorageStates implements StorageStateInterface

func (*FakeStorageStates) Create

func (c *FakeStorageStates) Create(storageState *v1alpha1.StorageState) (result *v1alpha1.StorageState, err error)

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

func (*FakeStorageStates) Delete

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

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

func (*FakeStorageStates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStorageStates) Get

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

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

func (*FakeStorageStates) List

func (c *FakeStorageStates) List(opts v1.ListOptions) (result *v1alpha1.StorageStateList, err error)

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

func (*FakeStorageStates) Patch

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

Patch applies the patch and returns the patched storageState.

func (*FakeStorageStates) Update

func (c *FakeStorageStates) Update(storageState *v1alpha1.StorageState) (result *v1alpha1.StorageState, err error)

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

func (*FakeStorageStates) UpdateStatus

func (c *FakeStorageStates) UpdateStatus(storageState *v1alpha1.StorageState) (*v1alpha1.StorageState, error)

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

func (*FakeStorageStates) Watch

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

type FakeStorageVersionMigrations

type FakeStorageVersionMigrations struct {
	Fake *FakeMigrationV1alpha1
}

FakeStorageVersionMigrations implements StorageVersionMigrationInterface

func (*FakeStorageVersionMigrations) Create

func (c *FakeStorageVersionMigrations) Create(storageVersionMigration *v1alpha1.StorageVersionMigration) (result *v1alpha1.StorageVersionMigration, err error)

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

func (*FakeStorageVersionMigrations) Delete

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

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

func (*FakeStorageVersionMigrations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeStorageVersionMigrations) Get

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

func (*FakeStorageVersionMigrations) List

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

func (*FakeStorageVersionMigrations) Patch

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

Patch applies the patch and returns the patched storageVersionMigration.

func (*FakeStorageVersionMigrations) Update

func (c *FakeStorageVersionMigrations) Update(storageVersionMigration *v1alpha1.StorageVersionMigration) (result *v1alpha1.StorageVersionMigration, err error)

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

func (*FakeStorageVersionMigrations) UpdateStatus

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

func (*FakeStorageVersionMigrations) Watch

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

Jump to

Keyboard shortcuts

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