fake

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeInternalV1beta1

type FakeInternalV1beta1 struct {
	*testing.Fake
}

func (*FakeInternalV1beta1) PullSubscriptions

func (c *FakeInternalV1beta1) PullSubscriptions(namespace string) v1beta1.PullSubscriptionInterface

func (*FakeInternalV1beta1) RESTClient

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

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

func (*FakeInternalV1beta1) Topics

func (c *FakeInternalV1beta1) Topics(namespace string) v1beta1.TopicInterface

type FakePullSubscriptions

type FakePullSubscriptions struct {
	Fake *FakeInternalV1beta1
	// contains filtered or unexported fields
}

FakePullSubscriptions implements PullSubscriptionInterface

func (*FakePullSubscriptions) Create

func (c *FakePullSubscriptions) Create(pullSubscription *v1beta1.PullSubscription) (result *v1beta1.PullSubscription, err error)

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

func (*FakePullSubscriptions) Delete

func (c *FakePullSubscriptions) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakePullSubscriptions) DeleteCollection

func (c *FakePullSubscriptions) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePullSubscriptions) Get

func (c *FakePullSubscriptions) Get(name string, options v1.GetOptions) (result *v1beta1.PullSubscription, err error)

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

func (*FakePullSubscriptions) List

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

func (*FakePullSubscriptions) Patch

func (c *FakePullSubscriptions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.PullSubscription, err error)

Patch applies the patch and returns the patched pullSubscription.

func (*FakePullSubscriptions) Update

func (c *FakePullSubscriptions) Update(pullSubscription *v1beta1.PullSubscription) (result *v1beta1.PullSubscription, err error)

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

func (*FakePullSubscriptions) UpdateStatus

func (c *FakePullSubscriptions) UpdateStatus(pullSubscription *v1beta1.PullSubscription) (*v1beta1.PullSubscription, error)

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

func (*FakePullSubscriptions) Watch

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

type FakeTopics

type FakeTopics struct {
	Fake *FakeInternalV1beta1
	// contains filtered or unexported fields
}

FakeTopics implements TopicInterface

func (*FakeTopics) Create

func (c *FakeTopics) Create(topic *v1beta1.Topic) (result *v1beta1.Topic, err error)

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

func (*FakeTopics) Delete

func (c *FakeTopics) Delete(name string, options *v1.DeleteOptions) error

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

func (*FakeTopics) DeleteCollection

func (c *FakeTopics) DeleteCollection(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeTopics) Get

func (c *FakeTopics) Get(name string, options v1.GetOptions) (result *v1beta1.Topic, err error)

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

func (*FakeTopics) List

func (c *FakeTopics) List(opts v1.ListOptions) (result *v1beta1.TopicList, err error)

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

func (*FakeTopics) Patch

func (c *FakeTopics) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1beta1.Topic, err error)

Patch applies the patch and returns the patched topic.

func (*FakeTopics) Update

func (c *FakeTopics) Update(topic *v1beta1.Topic) (result *v1beta1.Topic, err error)

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

func (*FakeTopics) UpdateStatus

func (c *FakeTopics) UpdateStatus(topic *v1beta1.Topic) (*v1beta1.Topic, error)

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

func (*FakeTopics) Watch

func (c *FakeTopics) Watch(opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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