Version: v0.0.0-...-d19fc40 Latest Latest

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 10 Imported by: 0



Package fake has the automatically generated clients.



This section is empty.


This section is empty.


This section is empty.


type FakeChannels

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

FakeChannels implements ChannelInterface

func (*FakeChannels) Create

func (c *FakeChannels) Create(ctx context.Context, channel *v1beta1.Channel, opts v1.CreateOptions) (result *v1beta1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeChannels) Get

func (c *FakeChannels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1beta1.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(ctx context.Context, opts v1.ListOptions) (result *v1beta1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1beta1.Channel, err error)

Patch applies the patch and returns the patched channel.

func (*FakeChannels) Update

func (c *FakeChannels) Update(ctx context.Context, channel *v1beta1.Channel, opts v1.UpdateOptions) (result *v1beta1.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

func (c *FakeChannels) UpdateStatus(ctx context.Context, channel *v1beta1.Channel, opts v1.UpdateOptions) (*v1beta1.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(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeMessagingV1beta1

type FakeMessagingV1beta1 struct {

func (*FakeMessagingV1beta1) Channels

func (c *FakeMessagingV1beta1) Channels(namespace string) v1beta1.ChannelInterface

func (*FakeMessagingV1beta1) RESTClient

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL