fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2018 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 FakeEventingV1alpha1

type FakeEventingV1alpha1 struct {
	*testing.Fake
}

func (*FakeEventingV1alpha1) RESTClient

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

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

func (*FakeEventingV1alpha1) Subscriptions

func (c *FakeEventingV1alpha1) Subscriptions(namespace string) v1alpha1.SubscriptionInterface

type FakeSubscriptions

type FakeSubscriptions struct {
	Fake *FakeEventingV1alpha1
	// contains filtered or unexported fields
}

FakeSubscriptions implements SubscriptionInterface

func (*FakeSubscriptions) Create

func (c *FakeSubscriptions) Create(subscription *v1alpha1.Subscription) (result *v1alpha1.Subscription, err error)

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

func (*FakeSubscriptions) Delete

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

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

func (*FakeSubscriptions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSubscriptions) Get

func (c *FakeSubscriptions) Get(name string, options v1.GetOptions) (result *v1alpha1.Subscription, err error)

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

func (*FakeSubscriptions) List

func (c *FakeSubscriptions) List(opts v1.ListOptions) (result *v1alpha1.SubscriptionList, err error)

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

func (*FakeSubscriptions) Patch

func (c *FakeSubscriptions) Patch(name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Subscription, err error)

Patch applies the patch and returns the patched subscription.

func (*FakeSubscriptions) Update

func (c *FakeSubscriptions) Update(subscription *v1alpha1.Subscription) (result *v1alpha1.Subscription, err error)

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

func (*FakeSubscriptions) UpdateStatus

func (c *FakeSubscriptions) UpdateStatus(subscription *v1alpha1.Subscription) (*v1alpha1.Subscription, error)

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

func (*FakeSubscriptions) Watch

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

Jump to

Keyboard shortcuts

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