fake

package
v0.10.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 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 FakeBackupBatches

type FakeBackupBatches struct {
	Fake *FakeStashV1beta1
	// contains filtered or unexported fields
}

FakeBackupBatches implements BackupBatchInterface

func (*FakeBackupBatches) Create

func (c *FakeBackupBatches) Create(ctx context.Context, backupBatch *v1beta1.BackupBatch, opts v1.CreateOptions) (result *v1beta1.BackupBatch, err error)

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

func (*FakeBackupBatches) Delete

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

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

func (*FakeBackupBatches) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupBatches) Get

func (c *FakeBackupBatches) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BackupBatch, err error)

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

func (*FakeBackupBatches) List

func (c *FakeBackupBatches) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BackupBatchList, err error)

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

func (*FakeBackupBatches) Patch

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

Patch applies the patch and returns the patched backupBatch.

func (*FakeBackupBatches) Update

func (c *FakeBackupBatches) Update(ctx context.Context, backupBatch *v1beta1.BackupBatch, opts v1.UpdateOptions) (result *v1beta1.BackupBatch, err error)

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

func (*FakeBackupBatches) UpdateStatus

func (c *FakeBackupBatches) UpdateStatus(ctx context.Context, backupBatch *v1beta1.BackupBatch, opts v1.UpdateOptions) (*v1beta1.BackupBatch, error)

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

func (*FakeBackupBatches) Watch

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

type FakeBackupBlueprints

type FakeBackupBlueprints struct {
	Fake *FakeStashV1beta1
}

FakeBackupBlueprints implements BackupBlueprintInterface

func (*FakeBackupBlueprints) Create

func (c *FakeBackupBlueprints) Create(ctx context.Context, backupBlueprint *v1beta1.BackupBlueprint, opts v1.CreateOptions) (result *v1beta1.BackupBlueprint, err error)

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

func (*FakeBackupBlueprints) Delete

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

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

func (*FakeBackupBlueprints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupBlueprints) Get

func (c *FakeBackupBlueprints) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BackupBlueprint, err error)

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

func (*FakeBackupBlueprints) List

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

func (*FakeBackupBlueprints) Patch

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

Patch applies the patch and returns the patched backupBlueprint.

func (*FakeBackupBlueprints) Update

func (c *FakeBackupBlueprints) Update(ctx context.Context, backupBlueprint *v1beta1.BackupBlueprint, opts v1.UpdateOptions) (result *v1beta1.BackupBlueprint, err error)

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

func (*FakeBackupBlueprints) Watch

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

type FakeBackupConfigurations

type FakeBackupConfigurations struct {
	Fake *FakeStashV1beta1
	// contains filtered or unexported fields
}

FakeBackupConfigurations implements BackupConfigurationInterface

func (*FakeBackupConfigurations) Create

func (c *FakeBackupConfigurations) Create(ctx context.Context, backupConfiguration *v1beta1.BackupConfiguration, opts v1.CreateOptions) (result *v1beta1.BackupConfiguration, err error)

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

func (*FakeBackupConfigurations) Delete

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

func (*FakeBackupConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupConfigurations) Get

func (c *FakeBackupConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BackupConfiguration, err error)

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

func (*FakeBackupConfigurations) List

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

func (*FakeBackupConfigurations) Patch

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

Patch applies the patch and returns the patched backupConfiguration.

func (*FakeBackupConfigurations) Update

func (c *FakeBackupConfigurations) Update(ctx context.Context, backupConfiguration *v1beta1.BackupConfiguration, opts v1.UpdateOptions) (result *v1beta1.BackupConfiguration, err error)

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

func (*FakeBackupConfigurations) UpdateStatus

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

func (*FakeBackupConfigurations) Watch

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

type FakeBackupSessions

type FakeBackupSessions struct {
	Fake *FakeStashV1beta1
	// contains filtered or unexported fields
}

FakeBackupSessions implements BackupSessionInterface

func (*FakeBackupSessions) Create

func (c *FakeBackupSessions) Create(ctx context.Context, backupSession *v1beta1.BackupSession, opts v1.CreateOptions) (result *v1beta1.BackupSession, err error)

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

func (*FakeBackupSessions) Delete

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

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

func (*FakeBackupSessions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBackupSessions) Get

func (c *FakeBackupSessions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.BackupSession, err error)

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

func (*FakeBackupSessions) List

func (c *FakeBackupSessions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.BackupSessionList, err error)

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

func (*FakeBackupSessions) Patch

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

Patch applies the patch and returns the patched backupSession.

func (*FakeBackupSessions) Update

func (c *FakeBackupSessions) Update(ctx context.Context, backupSession *v1beta1.BackupSession, opts v1.UpdateOptions) (result *v1beta1.BackupSession, err error)

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

func (*FakeBackupSessions) UpdateStatus

func (c *FakeBackupSessions) UpdateStatus(ctx context.Context, backupSession *v1beta1.BackupSession, opts v1.UpdateOptions) (*v1beta1.BackupSession, error)

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

func (*FakeBackupSessions) Watch

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

type FakeFunctions

type FakeFunctions struct {
	Fake *FakeStashV1beta1
}

FakeFunctions implements FunctionInterface

func (*FakeFunctions) Create

func (c *FakeFunctions) Create(ctx context.Context, function *v1beta1.Function, opts v1.CreateOptions) (result *v1beta1.Function, err error)

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

func (*FakeFunctions) Delete

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

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

func (*FakeFunctions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFunctions) Get

func (c *FakeFunctions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Function, err error)

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

func (*FakeFunctions) List

func (c *FakeFunctions) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.FunctionList, err error)

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

func (*FakeFunctions) Patch

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

Patch applies the patch and returns the patched function.

func (*FakeFunctions) Update

func (c *FakeFunctions) Update(ctx context.Context, function *v1beta1.Function, opts v1.UpdateOptions) (result *v1beta1.Function, err error)

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

func (*FakeFunctions) Watch

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

type FakeRestoreSessions

type FakeRestoreSessions struct {
	Fake *FakeStashV1beta1
	// contains filtered or unexported fields
}

FakeRestoreSessions implements RestoreSessionInterface

func (*FakeRestoreSessions) Create

func (c *FakeRestoreSessions) Create(ctx context.Context, restoreSession *v1beta1.RestoreSession, opts v1.CreateOptions) (result *v1beta1.RestoreSession, err error)

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

func (*FakeRestoreSessions) Delete

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

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

func (*FakeRestoreSessions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRestoreSessions) Get

func (c *FakeRestoreSessions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.RestoreSession, err error)

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

func (*FakeRestoreSessions) List

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

func (*FakeRestoreSessions) Patch

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

Patch applies the patch and returns the patched restoreSession.

func (*FakeRestoreSessions) Update

func (c *FakeRestoreSessions) Update(ctx context.Context, restoreSession *v1beta1.RestoreSession, opts v1.UpdateOptions) (result *v1beta1.RestoreSession, err error)

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

func (*FakeRestoreSessions) UpdateStatus

func (c *FakeRestoreSessions) UpdateStatus(ctx context.Context, restoreSession *v1beta1.RestoreSession, opts v1.UpdateOptions) (*v1beta1.RestoreSession, error)

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

func (*FakeRestoreSessions) Watch

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

type FakeStashV1beta1

type FakeStashV1beta1 struct {
	*testing.Fake
}

func (*FakeStashV1beta1) BackupBatches

func (c *FakeStashV1beta1) BackupBatches(namespace string) v1beta1.BackupBatchInterface

func (*FakeStashV1beta1) BackupBlueprints

func (c *FakeStashV1beta1) BackupBlueprints() v1beta1.BackupBlueprintInterface

func (*FakeStashV1beta1) BackupConfigurations

func (c *FakeStashV1beta1) BackupConfigurations(namespace string) v1beta1.BackupConfigurationInterface

func (*FakeStashV1beta1) BackupSessions

func (c *FakeStashV1beta1) BackupSessions(namespace string) v1beta1.BackupSessionInterface

func (*FakeStashV1beta1) Functions

func (*FakeStashV1beta1) RESTClient

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

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

func (*FakeStashV1beta1) RestoreSessions

func (c *FakeStashV1beta1) RestoreSessions(namespace string) v1beta1.RestoreSessionInterface

func (*FakeStashV1beta1) Tasks

type FakeTasks

type FakeTasks struct {
	Fake *FakeStashV1beta1
}

FakeTasks implements TaskInterface

func (*FakeTasks) Create

func (c *FakeTasks) Create(ctx context.Context, task *v1beta1.Task, opts v1.CreateOptions) (result *v1beta1.Task, err error)

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

func (*FakeTasks) Delete

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

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

func (*FakeTasks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTasks) Get

func (c *FakeTasks) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.Task, err error)

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

func (*FakeTasks) List

func (c *FakeTasks) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.TaskList, err error)

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

func (*FakeTasks) Patch

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

Patch applies the patch and returns the patched task.

func (*FakeTasks) Update

func (c *FakeTasks) Update(ctx context.Context, task *v1beta1.Task, opts v1.UpdateOptions) (result *v1beta1.Task, err error)

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

func (*FakeTasks) Watch

func (c *FakeTasks) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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