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 FakePubSubSchemas added in v1.89.0

type FakePubSubSchemas struct {
	Fake *FakePubsubV1beta1
	// contains filtered or unexported fields
}

FakePubSubSchemas implements PubSubSchemaInterface

func (*FakePubSubSchemas) Create added in v1.89.0

func (c *FakePubSubSchemas) Create(ctx context.Context, pubSubSchema *v1beta1.PubSubSchema, opts v1.CreateOptions) (result *v1beta1.PubSubSchema, err error)

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

func (*FakePubSubSchemas) Delete added in v1.89.0

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

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

func (*FakePubSubSchemas) DeleteCollection added in v1.89.0

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

DeleteCollection deletes a collection of objects.

func (*FakePubSubSchemas) Get added in v1.89.0

func (c *FakePubSubSchemas) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PubSubSchema, err error)

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

func (*FakePubSubSchemas) List added in v1.89.0

func (c *FakePubSubSchemas) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PubSubSchemaList, err error)

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

func (*FakePubSubSchemas) Patch added in v1.89.0

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

Patch applies the patch and returns the patched pubSubSchema.

func (*FakePubSubSchemas) Update added in v1.89.0

func (c *FakePubSubSchemas) Update(ctx context.Context, pubSubSchema *v1beta1.PubSubSchema, opts v1.UpdateOptions) (result *v1beta1.PubSubSchema, err error)

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

func (*FakePubSubSchemas) UpdateStatus added in v1.89.0

func (c *FakePubSubSchemas) UpdateStatus(ctx context.Context, pubSubSchema *v1beta1.PubSubSchema, opts v1.UpdateOptions) (*v1beta1.PubSubSchema, error)

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

func (*FakePubSubSchemas) Watch added in v1.89.0

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

type FakePubSubSubscriptions

type FakePubSubSubscriptions struct {
	Fake *FakePubsubV1beta1
	// contains filtered or unexported fields
}

FakePubSubSubscriptions implements PubSubSubscriptionInterface

func (*FakePubSubSubscriptions) Create

func (c *FakePubSubSubscriptions) Create(ctx context.Context, pubSubSubscription *v1beta1.PubSubSubscription, opts v1.CreateOptions) (result *v1beta1.PubSubSubscription, err error)

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

func (*FakePubSubSubscriptions) Delete

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

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

func (*FakePubSubSubscriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePubSubSubscriptions) Get

func (c *FakePubSubSubscriptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PubSubSubscription, err error)

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

func (*FakePubSubSubscriptions) List

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

func (*FakePubSubSubscriptions) Patch

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

Patch applies the patch and returns the patched pubSubSubscription.

func (*FakePubSubSubscriptions) Update

func (c *FakePubSubSubscriptions) Update(ctx context.Context, pubSubSubscription *v1beta1.PubSubSubscription, opts v1.UpdateOptions) (result *v1beta1.PubSubSubscription, err error)

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

func (*FakePubSubSubscriptions) UpdateStatus

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

func (*FakePubSubSubscriptions) Watch

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

type FakePubSubTopics

type FakePubSubTopics struct {
	Fake *FakePubsubV1beta1
	// contains filtered or unexported fields
}

FakePubSubTopics implements PubSubTopicInterface

func (*FakePubSubTopics) Create

func (c *FakePubSubTopics) Create(ctx context.Context, pubSubTopic *v1beta1.PubSubTopic, opts v1.CreateOptions) (result *v1beta1.PubSubTopic, err error)

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

func (*FakePubSubTopics) Delete

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

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

func (*FakePubSubTopics) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePubSubTopics) Get

func (c *FakePubSubTopics) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.PubSubTopic, err error)

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

func (*FakePubSubTopics) List

func (c *FakePubSubTopics) List(ctx context.Context, opts v1.ListOptions) (result *v1beta1.PubSubTopicList, err error)

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

func (*FakePubSubTopics) Patch

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

Patch applies the patch and returns the patched pubSubTopic.

func (*FakePubSubTopics) Update

func (c *FakePubSubTopics) Update(ctx context.Context, pubSubTopic *v1beta1.PubSubTopic, opts v1.UpdateOptions) (result *v1beta1.PubSubTopic, err error)

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

func (*FakePubSubTopics) UpdateStatus

func (c *FakePubSubTopics) UpdateStatus(ctx context.Context, pubSubTopic *v1beta1.PubSubTopic, opts v1.UpdateOptions) (*v1beta1.PubSubTopic, error)

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

func (*FakePubSubTopics) Watch

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

type FakePubsubV1beta1

type FakePubsubV1beta1 struct {
	*testing.Fake
}

func (*FakePubsubV1beta1) PubSubSchemas added in v1.89.0

func (c *FakePubsubV1beta1) PubSubSchemas(namespace string) v1beta1.PubSubSchemaInterface

func (*FakePubsubV1beta1) PubSubSubscriptions

func (c *FakePubsubV1beta1) PubSubSubscriptions(namespace string) v1beta1.PubSubSubscriptionInterface

func (*FakePubsubV1beta1) PubSubTopics

func (c *FakePubsubV1beta1) PubSubTopics(namespace string) v1beta1.PubSubTopicInterface

func (*FakePubsubV1beta1) RESTClient

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