fake

package
Version: v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 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 FakePubsubV1alpha1

type FakePubsubV1alpha1 struct {
	*testing.Fake
}

func (*FakePubsubV1alpha1) PullSubscriptions

func (c *FakePubsubV1alpha1) PullSubscriptions(namespace string) v1alpha1.PullSubscriptionInterface

func (*FakePubsubV1alpha1) RESTClient

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

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

func (*FakePubsubV1alpha1) Topics

func (c *FakePubsubV1alpha1) Topics(namespace string) v1alpha1.TopicInterface

type FakePullSubscriptions

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

FakePullSubscriptions implements PullSubscriptionInterface

func (*FakePullSubscriptions) Create

func (c *FakePullSubscriptions) Create(pullSubscription *v1alpha1.PullSubscription) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.PullSubscription, err error)

Patch applies the patch and returns the patched pullSubscription.

func (*FakePullSubscriptions) Update

func (c *FakePullSubscriptions) Update(pullSubscription *v1alpha1.PullSubscription) (result *v1alpha1.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 *v1alpha1.PullSubscription) (*v1alpha1.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 *FakePubsubV1alpha1
	// contains filtered or unexported fields
}

FakeTopics implements TopicInterface

func (*FakeTopics) Create

func (c *FakeTopics) Create(topic *v1alpha1.Topic) (result *v1alpha1.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 *v1alpha1.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 *v1alpha1.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 *v1alpha1.Topic, err error)

Patch applies the patch and returns the patched topic.

func (*FakeTopics) Update

func (c *FakeTopics) Update(topic *v1alpha1.Topic) (result *v1alpha1.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 *v1alpha1.Topic) (*v1alpha1.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