fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 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 FakeClustersnapshotV1alpha1

type FakeClustersnapshotV1alpha1 struct {
	*testing.Fake
}

func (*FakeClustersnapshotV1alpha1) ObjectstoreConfigs

func (c *FakeClustersnapshotV1alpha1) ObjectstoreConfigs(namespace string) v1alpha1.ObjectstoreConfigInterface

func (*FakeClustersnapshotV1alpha1) RESTClient

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

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

func (*FakeClustersnapshotV1alpha1) RestorePreferences

func (c *FakeClustersnapshotV1alpha1) RestorePreferences(namespace string) v1alpha1.RestorePreferenceInterface

func (*FakeClustersnapshotV1alpha1) Restores

func (*FakeClustersnapshotV1alpha1) Snapshots

type FakeObjectstoreConfigs

type FakeObjectstoreConfigs struct {
	Fake *FakeClustersnapshotV1alpha1
	// contains filtered or unexported fields
}

FakeObjectstoreConfigs implements ObjectstoreConfigInterface

func (*FakeObjectstoreConfigs) Create

func (c *FakeObjectstoreConfigs) Create(ctx context.Context, objectstoreConfig *v1alpha1.ObjectstoreConfig, opts v1.CreateOptions) (result *v1alpha1.ObjectstoreConfig, err error)

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

func (*FakeObjectstoreConfigs) Delete

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

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

func (*FakeObjectstoreConfigs) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeObjectstoreConfigs) Get

func (c *FakeObjectstoreConfigs) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ObjectstoreConfig, err error)

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

func (*FakeObjectstoreConfigs) List

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

func (*FakeObjectstoreConfigs) Patch

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

Patch applies the patch and returns the patched objectstoreConfig.

func (*FakeObjectstoreConfigs) Update

func (c *FakeObjectstoreConfigs) Update(ctx context.Context, objectstoreConfig *v1alpha1.ObjectstoreConfig, opts v1.UpdateOptions) (result *v1alpha1.ObjectstoreConfig, err error)

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

func (*FakeObjectstoreConfigs) Watch

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

type FakeRestorePreferences

type FakeRestorePreferences struct {
	Fake *FakeClustersnapshotV1alpha1
	// contains filtered or unexported fields
}

FakeRestorePreferences implements RestorePreferenceInterface

func (*FakeRestorePreferences) Create

func (c *FakeRestorePreferences) Create(ctx context.Context, restorePreference *v1alpha1.RestorePreference, opts v1.CreateOptions) (result *v1alpha1.RestorePreference, err error)

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

func (*FakeRestorePreferences) Delete

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

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

func (*FakeRestorePreferences) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRestorePreferences) Get

func (c *FakeRestorePreferences) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.RestorePreference, err error)

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

func (*FakeRestorePreferences) List

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

func (*FakeRestorePreferences) Patch

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

Patch applies the patch and returns the patched restorePreference.

func (*FakeRestorePreferences) Update

func (c *FakeRestorePreferences) Update(ctx context.Context, restorePreference *v1alpha1.RestorePreference, opts v1.UpdateOptions) (result *v1alpha1.RestorePreference, err error)

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

func (*FakeRestorePreferences) Watch

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

type FakeRestores

type FakeRestores struct {
	Fake *FakeClustersnapshotV1alpha1
	// contains filtered or unexported fields
}

FakeRestores implements RestoreInterface

func (*FakeRestores) Create

func (c *FakeRestores) Create(ctx context.Context, restore *v1alpha1.Restore, opts v1.CreateOptions) (result *v1alpha1.Restore, err error)

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

func (*FakeRestores) Delete

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

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

func (*FakeRestores) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRestores) Get

func (c *FakeRestores) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Restore, err error)

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

func (*FakeRestores) List

func (c *FakeRestores) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.RestoreList, err error)

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

func (*FakeRestores) Patch

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

Patch applies the patch and returns the patched restore.

func (*FakeRestores) Update

func (c *FakeRestores) Update(ctx context.Context, restore *v1alpha1.Restore, opts v1.UpdateOptions) (result *v1alpha1.Restore, err error)

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

func (*FakeRestores) UpdateStatus

func (c *FakeRestores) UpdateStatus(ctx context.Context, restore *v1alpha1.Restore, opts v1.UpdateOptions) (*v1alpha1.Restore, error)

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

func (*FakeRestores) Watch

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

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

type FakeSnapshots

type FakeSnapshots struct {
	Fake *FakeClustersnapshotV1alpha1
	// contains filtered or unexported fields
}

FakeSnapshots implements SnapshotInterface

func (*FakeSnapshots) Create

func (c *FakeSnapshots) Create(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.CreateOptions) (result *v1alpha1.Snapshot, err error)

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

func (*FakeSnapshots) Delete

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

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

func (*FakeSnapshots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSnapshots) Get

func (c *FakeSnapshots) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Snapshot, err error)

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

func (*FakeSnapshots) List

func (c *FakeSnapshots) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SnapshotList, err error)

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

func (*FakeSnapshots) Patch

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

Patch applies the patch and returns the patched snapshot.

func (*FakeSnapshots) Update

func (c *FakeSnapshots) Update(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (result *v1alpha1.Snapshot, err error)

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

func (*FakeSnapshots) UpdateStatus

func (c *FakeSnapshots) UpdateStatus(ctx context.Context, snapshot *v1alpha1.Snapshot, opts v1.UpdateOptions) (*v1alpha1.Snapshot, error)

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

func (*FakeSnapshots) Watch

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

Jump to

Keyboard shortcuts

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