fake

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2019 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 FakeBrokers added in v0.5.0

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

FakeBrokers implements BrokerInterface

func (*FakeBrokers) Create added in v0.5.0

func (c *FakeBrokers) Create(broker *v1alpha1.Broker) (result *v1alpha1.Broker, err error)

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

func (*FakeBrokers) Delete added in v0.5.0

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

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

func (*FakeBrokers) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeBrokers) Get added in v0.5.0

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

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

func (*FakeBrokers) List added in v0.5.0

func (c *FakeBrokers) List(opts v1.ListOptions) (result *v1alpha1.BrokerList, err error)

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

func (*FakeBrokers) Patch added in v0.5.0

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

Patch applies the patch and returns the patched broker.

func (*FakeBrokers) Update added in v0.5.0

func (c *FakeBrokers) Update(broker *v1alpha1.Broker) (result *v1alpha1.Broker, err error)

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

func (*FakeBrokers) UpdateStatus added in v0.5.0

func (c *FakeBrokers) UpdateStatus(broker *v1alpha1.Broker) (*v1alpha1.Broker, error)

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

func (*FakeBrokers) Watch added in v0.5.0

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

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

type FakeChannels

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

FakeChannels implements ChannelInterface

func (*FakeChannels) Create

func (c *FakeChannels) Create(channel *v1alpha1.Channel) (result *v1alpha1.Channel, err error)

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

func (*FakeChannels) Delete

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

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

func (*FakeChannels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeChannels) Get

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

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

func (*FakeChannels) List

func (c *FakeChannels) List(opts v1.ListOptions) (result *v1alpha1.ChannelList, err error)

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

func (*FakeChannels) Patch

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

Patch applies the patch and returns the patched channel.

func (*FakeChannels) Update

func (c *FakeChannels) Update(channel *v1alpha1.Channel) (result *v1alpha1.Channel, err error)

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

func (*FakeChannels) UpdateStatus added in v0.3.0

func (c *FakeChannels) UpdateStatus(channel *v1alpha1.Channel) (*v1alpha1.Channel, error)

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

func (*FakeChannels) Watch

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

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

type FakeClusterChannelProvisioners

type FakeClusterChannelProvisioners struct {
	Fake *FakeEventingV1alpha1
}

FakeClusterChannelProvisioners implements ClusterChannelProvisionerInterface

func (*FakeClusterChannelProvisioners) Create

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

func (*FakeClusterChannelProvisioners) Delete

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

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

func (*FakeClusterChannelProvisioners) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterChannelProvisioners) Get

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

func (*FakeClusterChannelProvisioners) List

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

func (*FakeClusterChannelProvisioners) Patch

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

Patch applies the patch and returns the patched clusterChannelProvisioner.

func (*FakeClusterChannelProvisioners) Update

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

func (*FakeClusterChannelProvisioners) UpdateStatus added in v0.6.0

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

func (*FakeClusterChannelProvisioners) Watch

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

type FakeEventTypes added in v0.6.0

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

FakeEventTypes implements EventTypeInterface

func (*FakeEventTypes) Create added in v0.6.0

func (c *FakeEventTypes) Create(eventType *v1alpha1.EventType) (result *v1alpha1.EventType, err error)

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

func (*FakeEventTypes) Delete added in v0.6.0

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

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

func (*FakeEventTypes) DeleteCollection added in v0.6.0

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

DeleteCollection deletes a collection of objects.

func (*FakeEventTypes) Get added in v0.6.0

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

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

func (*FakeEventTypes) List added in v0.6.0

func (c *FakeEventTypes) List(opts v1.ListOptions) (result *v1alpha1.EventTypeList, err error)

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

func (*FakeEventTypes) Patch added in v0.6.0

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

Patch applies the patch and returns the patched eventType.

func (*FakeEventTypes) Update added in v0.6.0

func (c *FakeEventTypes) Update(eventType *v1alpha1.EventType) (result *v1alpha1.EventType, err error)

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

func (*FakeEventTypes) UpdateStatus added in v0.6.0

func (c *FakeEventTypes) UpdateStatus(eventType *v1alpha1.EventType) (*v1alpha1.EventType, error)

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

func (*FakeEventTypes) Watch added in v0.6.0

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

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

type FakeEventingV1alpha1

type FakeEventingV1alpha1 struct {
	*testing.Fake
}

func (*FakeEventingV1alpha1) Brokers added in v0.5.0

func (c *FakeEventingV1alpha1) Brokers(namespace string) v1alpha1.BrokerInterface

func (*FakeEventingV1alpha1) Channels

func (c *FakeEventingV1alpha1) Channels(namespace string) v1alpha1.ChannelInterface

func (*FakeEventingV1alpha1) ClusterChannelProvisioners

func (c *FakeEventingV1alpha1) ClusterChannelProvisioners() v1alpha1.ClusterChannelProvisionerInterface

func (*FakeEventingV1alpha1) EventTypes added in v0.6.0

func (c *FakeEventingV1alpha1) EventTypes(namespace string) v1alpha1.EventTypeInterface

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

func (*FakeEventingV1alpha1) Triggers added in v0.5.0

func (c *FakeEventingV1alpha1) Triggers(namespace string) v1alpha1.TriggerInterface

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 added in v0.6.0

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.

type FakeTriggers added in v0.5.0

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

FakeTriggers implements TriggerInterface

func (*FakeTriggers) Create added in v0.5.0

func (c *FakeTriggers) Create(trigger *v1alpha1.Trigger) (result *v1alpha1.Trigger, err error)

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

func (*FakeTriggers) Delete added in v0.5.0

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

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

func (*FakeTriggers) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeTriggers) Get added in v0.5.0

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

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

func (*FakeTriggers) List added in v0.5.0

func (c *FakeTriggers) List(opts v1.ListOptions) (result *v1alpha1.TriggerList, err error)

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

func (*FakeTriggers) Patch added in v0.5.0

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

Patch applies the patch and returns the patched trigger.

func (*FakeTriggers) Update added in v0.5.0

func (c *FakeTriggers) Update(trigger *v1alpha1.Trigger) (result *v1alpha1.Trigger, err error)

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

func (*FakeTriggers) UpdateStatus added in v0.5.0

func (c *FakeTriggers) UpdateStatus(trigger *v1alpha1.Trigger) (*v1alpha1.Trigger, error)

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

func (*FakeTriggers) Watch added in v0.5.0

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

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

Jump to

Keyboard shortcuts

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