fake

package
v1.116.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 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 FakePubSubLiteSubscriptions

type FakePubSubLiteSubscriptions struct {
	Fake *FakePubsubliteV1alpha1
	// contains filtered or unexported fields
}

FakePubSubLiteSubscriptions implements PubSubLiteSubscriptionInterface

func (*FakePubSubLiteSubscriptions) Create

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

func (*FakePubSubLiteSubscriptions) Delete

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

func (*FakePubSubLiteSubscriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePubSubLiteSubscriptions) Get

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

func (*FakePubSubLiteSubscriptions) List

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

func (*FakePubSubLiteSubscriptions) Patch

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

Patch applies the patch and returns the patched pubSubLiteSubscription.

func (*FakePubSubLiteSubscriptions) Update

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

func (*FakePubSubLiteSubscriptions) UpdateStatus

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

func (*FakePubSubLiteSubscriptions) Watch

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

type FakePubSubLiteTopics

type FakePubSubLiteTopics struct {
	Fake *FakePubsubliteV1alpha1
	// contains filtered or unexported fields
}

FakePubSubLiteTopics implements PubSubLiteTopicInterface

func (*FakePubSubLiteTopics) Create

func (c *FakePubSubLiteTopics) Create(ctx context.Context, pubSubLiteTopic *v1alpha1.PubSubLiteTopic, opts v1.CreateOptions) (result *v1alpha1.PubSubLiteTopic, err error)

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

func (*FakePubSubLiteTopics) Delete

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

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

func (*FakePubSubLiteTopics) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePubSubLiteTopics) Get

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

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

func (*FakePubSubLiteTopics) List

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

func (*FakePubSubLiteTopics) Patch

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

Patch applies the patch and returns the patched pubSubLiteTopic.

func (*FakePubSubLiteTopics) Update

func (c *FakePubSubLiteTopics) Update(ctx context.Context, pubSubLiteTopic *v1alpha1.PubSubLiteTopic, opts v1.UpdateOptions) (result *v1alpha1.PubSubLiteTopic, err error)

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

func (*FakePubSubLiteTopics) UpdateStatus

func (c *FakePubSubLiteTopics) UpdateStatus(ctx context.Context, pubSubLiteTopic *v1alpha1.PubSubLiteTopic, opts v1.UpdateOptions) (*v1alpha1.PubSubLiteTopic, error)

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

func (*FakePubSubLiteTopics) Watch

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

type FakePubsubliteV1alpha1

type FakePubsubliteV1alpha1 struct {
	*testing.Fake
}

func (*FakePubsubliteV1alpha1) PubSubLiteSubscriptions

func (c *FakePubsubliteV1alpha1) PubSubLiteSubscriptions(namespace string) v1alpha1.PubSubLiteSubscriptionInterface

func (*FakePubsubliteV1alpha1) PubSubLiteTopics

func (c *FakePubsubliteV1alpha1) PubSubLiteTopics(namespace string) v1alpha1.PubSubLiteTopicInterface

func (*FakePubsubliteV1alpha1) RESTClient

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