fake

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 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 FakeConsumerV1alpha1

type FakeConsumerV1alpha1 struct {
	*testing.Fake
}

func (*FakeConsumerV1alpha1) Consumers

func (*FakeConsumerV1alpha1) RESTClient

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

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

type FakeConsumers

type FakeConsumers struct {
	Fake *FakeConsumerV1alpha1
}

FakeConsumers implements ConsumerInterface

func (*FakeConsumers) Create

func (c *FakeConsumers) Create(ctx context.Context, consumer *v1alpha1.Consumer, opts v1.CreateOptions) (result *v1alpha1.Consumer, err error)

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

func (*FakeConsumers) Delete

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

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

func (*FakeConsumers) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeConsumers) Get

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

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

func (*FakeConsumers) List

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

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

func (*FakeConsumers) Patch

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

Patch applies the patch and returns the patched consumer.

func (*FakeConsumers) Update

func (c *FakeConsumers) Update(ctx context.Context, consumer *v1alpha1.Consumer, opts v1.UpdateOptions) (result *v1alpha1.Consumer, err error)

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

func (*FakeConsumers) UpdateStatus

func (c *FakeConsumers) UpdateStatus(ctx context.Context, consumer *v1alpha1.Consumer, opts v1.UpdateOptions) (*v1alpha1.Consumer, error)

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

func (*FakeConsumers) Watch

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

Jump to

Keyboard shortcuts

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