fake

package
v0.0.0-...-2c1c132 Latest Latest
Warning

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

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

type FakeRedisDestinations struct {
	Fake *FakeRedisV1alpha1
	// contains filtered or unexported fields
}

FakeRedisDestinations implements RedisDestinationInterface

func (*FakeRedisDestinations) Create

func (c *FakeRedisDestinations) Create(ctx context.Context, redisDestination *v1alpha1.RedisDestination, opts v1.CreateOptions) (result *v1alpha1.RedisDestination, err error)

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

func (*FakeRedisDestinations) Delete

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

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

func (*FakeRedisDestinations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRedisDestinations) Get

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

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

func (*FakeRedisDestinations) List

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

func (*FakeRedisDestinations) Patch

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

Patch applies the patch and returns the patched redisDestination.

func (*FakeRedisDestinations) Update

func (c *FakeRedisDestinations) Update(ctx context.Context, redisDestination *v1alpha1.RedisDestination, opts v1.UpdateOptions) (result *v1alpha1.RedisDestination, err error)

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

func (*FakeRedisDestinations) UpdateStatus

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

func (*FakeRedisDestinations) Watch

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

type FakeRedisServices

type FakeRedisServices struct {
	Fake *FakeRedisV1alpha1
	// contains filtered or unexported fields
}

FakeRedisServices implements RedisServiceInterface

func (*FakeRedisServices) Create

func (c *FakeRedisServices) Create(ctx context.Context, redisService *v1alpha1.RedisService, opts v1.CreateOptions) (result *v1alpha1.RedisService, err error)

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

func (*FakeRedisServices) Delete

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

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

func (*FakeRedisServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRedisServices) Get

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

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

func (*FakeRedisServices) List

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

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

func (*FakeRedisServices) Patch

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

Patch applies the patch and returns the patched redisService.

func (*FakeRedisServices) Update

func (c *FakeRedisServices) Update(ctx context.Context, redisService *v1alpha1.RedisService, opts v1.UpdateOptions) (result *v1alpha1.RedisService, err error)

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

func (*FakeRedisServices) UpdateStatus

func (c *FakeRedisServices) UpdateStatus(ctx context.Context, redisService *v1alpha1.RedisService, opts v1.UpdateOptions) (*v1alpha1.RedisService, error)

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

func (*FakeRedisServices) Watch

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

type FakeRedisV1alpha1

type FakeRedisV1alpha1 struct {
	*testing.Fake
}

func (*FakeRedisV1alpha1) RESTClient

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

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

func (*FakeRedisV1alpha1) RedisDestinations

func (c *FakeRedisV1alpha1) RedisDestinations(namespace string) v1alpha1.RedisDestinationInterface

func (*FakeRedisV1alpha1) RedisServices

func (c *FakeRedisV1alpha1) RedisServices(namespace string) v1alpha1.RedisServiceInterface

Jump to

Keyboard shortcuts

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