fake

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 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 FakeChannels added in v0.8.0

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

FakeChannels implements ChannelInterface

func (*FakeChannels) Create added in v0.8.0

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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeChannels) Get added in v0.8.0

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

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

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

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

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

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

type FakeInMemoryChannels

type FakeInMemoryChannels struct {
	Fake *FakeMessagingV1alpha1
	// contains filtered or unexported fields
}

FakeInMemoryChannels implements InMemoryChannelInterface

func (*FakeInMemoryChannels) Create

func (c *FakeInMemoryChannels) Create(inMemoryChannel *v1alpha1.InMemoryChannel) (result *v1alpha1.InMemoryChannel, err error)

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

func (*FakeInMemoryChannels) Delete

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

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

func (*FakeInMemoryChannels) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInMemoryChannels) Get

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

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

func (*FakeInMemoryChannels) List

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

func (*FakeInMemoryChannels) Patch

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

Patch applies the patch and returns the patched inMemoryChannel.

func (*FakeInMemoryChannels) Update

func (c *FakeInMemoryChannels) Update(inMemoryChannel *v1alpha1.InMemoryChannel) (result *v1alpha1.InMemoryChannel, err error)

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

func (*FakeInMemoryChannels) UpdateStatus

func (c *FakeInMemoryChannels) UpdateStatus(inMemoryChannel *v1alpha1.InMemoryChannel) (*v1alpha1.InMemoryChannel, error)

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

func (*FakeInMemoryChannels) Watch

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

type FakeMessagingV1alpha1

type FakeMessagingV1alpha1 struct {
	*testing.Fake
}

func (*FakeMessagingV1alpha1) Channels added in v0.8.0

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

func (*FakeMessagingV1alpha1) InMemoryChannels

func (c *FakeMessagingV1alpha1) InMemoryChannels(namespace string) v1alpha1.InMemoryChannelInterface

func (*FakeMessagingV1alpha1) Parallels added in v0.9.0

func (c *FakeMessagingV1alpha1) Parallels(namespace string) v1alpha1.ParallelInterface

func (*FakeMessagingV1alpha1) RESTClient

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

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

func (*FakeMessagingV1alpha1) Sequences

func (c *FakeMessagingV1alpha1) Sequences(namespace string) v1alpha1.SequenceInterface

func (*FakeMessagingV1alpha1) Subscriptions added in v0.9.0

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

type FakeParallels added in v0.9.0

type FakeParallels struct {
	Fake *FakeMessagingV1alpha1
	// contains filtered or unexported fields
}

FakeParallels implements ParallelInterface

func (*FakeParallels) Create added in v0.9.0

func (c *FakeParallels) Create(parallel *v1alpha1.Parallel) (result *v1alpha1.Parallel, err error)

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

func (*FakeParallels) Delete added in v0.9.0

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

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

func (*FakeParallels) DeleteCollection added in v0.9.0

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

DeleteCollection deletes a collection of objects.

func (*FakeParallels) Get added in v0.9.0

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

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

func (*FakeParallels) List added in v0.9.0

func (c *FakeParallels) List(opts v1.ListOptions) (result *v1alpha1.ParallelList, err error)

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

func (*FakeParallels) Patch added in v0.9.0

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

Patch applies the patch and returns the patched parallel.

func (*FakeParallels) Update added in v0.9.0

func (c *FakeParallels) Update(parallel *v1alpha1.Parallel) (result *v1alpha1.Parallel, err error)

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

func (*FakeParallels) UpdateStatus added in v0.9.0

func (c *FakeParallels) UpdateStatus(parallel *v1alpha1.Parallel) (*v1alpha1.Parallel, error)

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

func (*FakeParallels) Watch added in v0.9.0

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

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

type FakeSequences

type FakeSequences struct {
	Fake *FakeMessagingV1alpha1
	// contains filtered or unexported fields
}

FakeSequences implements SequenceInterface

func (*FakeSequences) Create

func (c *FakeSequences) Create(sequence *v1alpha1.Sequence) (result *v1alpha1.Sequence, err error)

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

func (*FakeSequences) Delete

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

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

func (*FakeSequences) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSequences) Get

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

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

func (*FakeSequences) List

func (c *FakeSequences) List(opts v1.ListOptions) (result *v1alpha1.SequenceList, err error)

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

func (*FakeSequences) Patch

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

Patch applies the patch and returns the patched sequence.

func (*FakeSequences) Update

func (c *FakeSequences) Update(sequence *v1alpha1.Sequence) (result *v1alpha1.Sequence, err error)

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

func (*FakeSequences) UpdateStatus

func (c *FakeSequences) UpdateStatus(sequence *v1alpha1.Sequence) (*v1alpha1.Sequence, error)

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

func (*FakeSequences) Watch

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

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

type FakeSubscriptions added in v0.9.0

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

FakeSubscriptions implements SubscriptionInterface

func (*FakeSubscriptions) Create added in v0.9.0

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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeSubscriptions) Get added in v0.9.0

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

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

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

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

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