fake

package
v0.0.0-...-9a2654e Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 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 FakeArangoBackupPolicies

type FakeArangoBackupPolicies struct {
	Fake *FakeBackupV1
	// contains filtered or unexported fields
}

FakeArangoBackupPolicies implements ArangoBackupPolicyInterface

func (*FakeArangoBackupPolicies) Create

func (c *FakeArangoBackupPolicies) Create(ctx context.Context, arangoBackupPolicy *v1.ArangoBackupPolicy, opts metav1.CreateOptions) (result *v1.ArangoBackupPolicy, err error)

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

func (*FakeArangoBackupPolicies) Delete

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

func (*FakeArangoBackupPolicies) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArangoBackupPolicies) Get

func (c *FakeArangoBackupPolicies) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoBackupPolicy, err error)

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

func (*FakeArangoBackupPolicies) List

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

func (*FakeArangoBackupPolicies) Patch

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

Patch applies the patch and returns the patched arangoBackupPolicy.

func (*FakeArangoBackupPolicies) Update

func (c *FakeArangoBackupPolicies) Update(ctx context.Context, arangoBackupPolicy *v1.ArangoBackupPolicy, opts metav1.UpdateOptions) (result *v1.ArangoBackupPolicy, err error)

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

func (*FakeArangoBackupPolicies) UpdateStatus

func (c *FakeArangoBackupPolicies) UpdateStatus(ctx context.Context, arangoBackupPolicy *v1.ArangoBackupPolicy, opts metav1.UpdateOptions) (*v1.ArangoBackupPolicy, error)

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

func (*FakeArangoBackupPolicies) Watch

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

type FakeArangoBackups

type FakeArangoBackups struct {
	Fake *FakeBackupV1
	// contains filtered or unexported fields
}

FakeArangoBackups implements ArangoBackupInterface

func (*FakeArangoBackups) Create

func (c *FakeArangoBackups) Create(ctx context.Context, arangoBackup *v1.ArangoBackup, opts metav1.CreateOptions) (result *v1.ArangoBackup, err error)

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

func (*FakeArangoBackups) Delete

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

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

func (*FakeArangoBackups) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArangoBackups) Get

func (c *FakeArangoBackups) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.ArangoBackup, err error)

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

func (*FakeArangoBackups) List

func (c *FakeArangoBackups) List(ctx context.Context, opts metav1.ListOptions) (result *v1.ArangoBackupList, err error)

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

func (*FakeArangoBackups) Patch

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

Patch applies the patch and returns the patched arangoBackup.

func (*FakeArangoBackups) Update

func (c *FakeArangoBackups) Update(ctx context.Context, arangoBackup *v1.ArangoBackup, opts metav1.UpdateOptions) (result *v1.ArangoBackup, err error)

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

func (*FakeArangoBackups) UpdateStatus

func (c *FakeArangoBackups) UpdateStatus(ctx context.Context, arangoBackup *v1.ArangoBackup, opts metav1.UpdateOptions) (*v1.ArangoBackup, error)

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

func (*FakeArangoBackups) Watch

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

type FakeBackupV1

type FakeBackupV1 struct {
	*testing.Fake
}

func (*FakeBackupV1) ArangoBackupPolicies

func (c *FakeBackupV1) ArangoBackupPolicies(namespace string) v1.ArangoBackupPolicyInterface

func (*FakeBackupV1) ArangoBackups

func (c *FakeBackupV1) ArangoBackups(namespace string) v1.ArangoBackupInterface

func (*FakeBackupV1) RESTClient

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

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

Jump to

Keyboard shortcuts

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