fake

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 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 FakeClusterBackupProcedureTemplates

type FakeClusterBackupProcedureTemplates struct {
	Fake *FakeRiotkitV1alpha1
	// contains filtered or unexported fields
}

FakeClusterBackupProcedureTemplates implements ClusterBackupProcedureTemplateInterface

func (*FakeClusterBackupProcedureTemplates) Create

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

func (*FakeClusterBackupProcedureTemplates) Delete

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

func (*FakeClusterBackupProcedureTemplates) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterBackupProcedureTemplates) Get

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

func (*FakeClusterBackupProcedureTemplates) List

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

func (*FakeClusterBackupProcedureTemplates) Patch

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

Patch applies the patch and returns the patched clusterBackupProcedureTemplate.

func (*FakeClusterBackupProcedureTemplates) Update

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

func (*FakeClusterBackupProcedureTemplates) UpdateStatus

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

func (*FakeClusterBackupProcedureTemplates) Watch

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

type FakeRequestedBackupActions

type FakeRequestedBackupActions struct {
	Fake *FakeRiotkitV1alpha1
	// contains filtered or unexported fields
}

FakeRequestedBackupActions implements RequestedBackupActionInterface

func (*FakeRequestedBackupActions) Create

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

func (*FakeRequestedBackupActions) Delete

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

func (*FakeRequestedBackupActions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRequestedBackupActions) Get

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

func (*FakeRequestedBackupActions) List

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

func (*FakeRequestedBackupActions) Patch

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

Patch applies the patch and returns the patched requestedBackupAction.

func (*FakeRequestedBackupActions) Update

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

func (*FakeRequestedBackupActions) UpdateStatus

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

func (*FakeRequestedBackupActions) Watch

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

type FakeRiotkitV1alpha1

type FakeRiotkitV1alpha1 struct {
	*testing.Fake
}

func (*FakeRiotkitV1alpha1) ClusterBackupProcedureTemplates

func (c *FakeRiotkitV1alpha1) ClusterBackupProcedureTemplates(namespace string) v1alpha1.ClusterBackupProcedureTemplateInterface

func (*FakeRiotkitV1alpha1) RESTClient

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

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

func (*FakeRiotkitV1alpha1) RequestedBackupActions

func (c *FakeRiotkitV1alpha1) RequestedBackupActions(namespace string) v1alpha1.RequestedBackupActionInterface

func (*FakeRiotkitV1alpha1) ScheduledBackups

func (c *FakeRiotkitV1alpha1) ScheduledBackups(namespace string) v1alpha1.ScheduledBackupInterface

type FakeScheduledBackups

type FakeScheduledBackups struct {
	Fake *FakeRiotkitV1alpha1
	// contains filtered or unexported fields
}

FakeScheduledBackups implements ScheduledBackupInterface

func (*FakeScheduledBackups) Create

func (c *FakeScheduledBackups) Create(ctx context.Context, scheduledBackup *v1alpha1.ScheduledBackup, opts v1.CreateOptions) (result *v1alpha1.ScheduledBackup, err error)

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

func (*FakeScheduledBackups) Delete

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

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

func (*FakeScheduledBackups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeScheduledBackups) Get

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

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

func (*FakeScheduledBackups) List

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

func (*FakeScheduledBackups) Patch

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

Patch applies the patch and returns the patched scheduledBackup.

func (*FakeScheduledBackups) Update

func (c *FakeScheduledBackups) Update(ctx context.Context, scheduledBackup *v1alpha1.ScheduledBackup, opts v1.UpdateOptions) (result *v1alpha1.ScheduledBackup, err error)

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

func (*FakeScheduledBackups) UpdateStatus

func (c *FakeScheduledBackups) UpdateStatus(ctx context.Context, scheduledBackup *v1alpha1.ScheduledBackup, opts v1.UpdateOptions) (*v1alpha1.ScheduledBackup, error)

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

func (*FakeScheduledBackups) Watch

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

Jump to

Keyboard shortcuts

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