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 FakeArangoClusterSynchronizations

type FakeArangoClusterSynchronizations struct {
	Fake *FakeDatabaseV1
	// contains filtered or unexported fields
}

FakeArangoClusterSynchronizations implements ArangoClusterSynchronizationInterface

func (*FakeArangoClusterSynchronizations) Create

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

func (*FakeArangoClusterSynchronizations) Delete

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

func (*FakeArangoClusterSynchronizations) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeArangoClusterSynchronizations) Get

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

func (*FakeArangoClusterSynchronizations) List

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

func (*FakeArangoClusterSynchronizations) Patch

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

Patch applies the patch and returns the patched arangoClusterSynchronization.

func (*FakeArangoClusterSynchronizations) Update

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

func (*FakeArangoClusterSynchronizations) UpdateStatus

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

func (*FakeArangoClusterSynchronizations) Watch

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

type FakeArangoDeployments

type FakeArangoDeployments struct {
	Fake *FakeDatabaseV1
	// contains filtered or unexported fields
}

FakeArangoDeployments implements ArangoDeploymentInterface

func (*FakeArangoDeployments) Create

func (c *FakeArangoDeployments) Create(ctx context.Context, arangoDeployment *v1.ArangoDeployment, opts metav1.CreateOptions) (result *v1.ArangoDeployment, err error)

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

func (*FakeArangoDeployments) Delete

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

func (*FakeArangoDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArangoDeployments) Get

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

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

func (*FakeArangoDeployments) List

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

func (*FakeArangoDeployments) Patch

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

Patch applies the patch and returns the patched arangoDeployment.

func (*FakeArangoDeployments) Update

func (c *FakeArangoDeployments) Update(ctx context.Context, arangoDeployment *v1.ArangoDeployment, opts metav1.UpdateOptions) (result *v1.ArangoDeployment, err error)

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

func (*FakeArangoDeployments) UpdateStatus

func (c *FakeArangoDeployments) UpdateStatus(ctx context.Context, arangoDeployment *v1.ArangoDeployment, opts metav1.UpdateOptions) (*v1.ArangoDeployment, error)

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

func (*FakeArangoDeployments) Watch

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

type FakeArangoMembers

type FakeArangoMembers struct {
	Fake *FakeDatabaseV1
	// contains filtered or unexported fields
}

FakeArangoMembers implements ArangoMemberInterface

func (*FakeArangoMembers) Create

func (c *FakeArangoMembers) Create(ctx context.Context, arangoMember *v1.ArangoMember, opts metav1.CreateOptions) (result *v1.ArangoMember, err error)

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

func (*FakeArangoMembers) Delete

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

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

func (*FakeArangoMembers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArangoMembers) Get

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

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

func (*FakeArangoMembers) List

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

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

func (*FakeArangoMembers) Patch

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

Patch applies the patch and returns the patched arangoMember.

func (*FakeArangoMembers) Update

func (c *FakeArangoMembers) Update(ctx context.Context, arangoMember *v1.ArangoMember, opts metav1.UpdateOptions) (result *v1.ArangoMember, err error)

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

func (*FakeArangoMembers) UpdateStatus

func (c *FakeArangoMembers) UpdateStatus(ctx context.Context, arangoMember *v1.ArangoMember, opts metav1.UpdateOptions) (*v1.ArangoMember, error)

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

func (*FakeArangoMembers) Watch

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

type FakeArangoTasks

type FakeArangoTasks struct {
	Fake *FakeDatabaseV1
	// contains filtered or unexported fields
}

FakeArangoTasks implements ArangoTaskInterface

func (*FakeArangoTasks) Create

func (c *FakeArangoTasks) Create(ctx context.Context, arangoTask *v1.ArangoTask, opts metav1.CreateOptions) (result *v1.ArangoTask, err error)

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

func (*FakeArangoTasks) Delete

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

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

func (*FakeArangoTasks) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeArangoTasks) Get

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

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

func (*FakeArangoTasks) List

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

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

func (*FakeArangoTasks) Patch

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

Patch applies the patch and returns the patched arangoTask.

func (*FakeArangoTasks) Update

func (c *FakeArangoTasks) Update(ctx context.Context, arangoTask *v1.ArangoTask, opts metav1.UpdateOptions) (result *v1.ArangoTask, err error)

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

func (*FakeArangoTasks) UpdateStatus

func (c *FakeArangoTasks) UpdateStatus(ctx context.Context, arangoTask *v1.ArangoTask, opts metav1.UpdateOptions) (*v1.ArangoTask, error)

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

func (*FakeArangoTasks) Watch

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

type FakeDatabaseV1

type FakeDatabaseV1 struct {
	*testing.Fake
}

func (*FakeDatabaseV1) ArangoClusterSynchronizations

func (c *FakeDatabaseV1) ArangoClusterSynchronizations(namespace string) v1.ArangoClusterSynchronizationInterface

func (*FakeDatabaseV1) ArangoDeployments

func (c *FakeDatabaseV1) ArangoDeployments(namespace string) v1.ArangoDeploymentInterface

func (*FakeDatabaseV1) ArangoMembers

func (c *FakeDatabaseV1) ArangoMembers(namespace string) v1.ArangoMemberInterface

func (*FakeDatabaseV1) ArangoTasks

func (c *FakeDatabaseV1) ArangoTasks(namespace string) v1.ArangoTaskInterface

func (*FakeDatabaseV1) RESTClient

func (c *FakeDatabaseV1) 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