fake

package
Version: v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 10 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

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

FakeChannels implements ChannelInterface

func (*FakeChannels) Create

func (c *FakeChannels) Create(ctx context.Context, channel *messagingv1.Channel, opts v1.CreateOptions) (result *messagingv1.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 *messagingv1.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 *messagingv1.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 *messagingv1.Channel, err error)

Patch applies the patch and returns the patched channel.

func (*FakeChannels) Update

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

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

FakeInMemoryChannels implements InMemoryChannelInterface

func (*FakeInMemoryChannels) Create

func (c *FakeInMemoryChannels) Create(ctx context.Context, inMemoryChannel *messagingv1.InMemoryChannel, opts v1.CreateOptions) (result *messagingv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeInMemoryChannels) Get

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

Patch applies the patch and returns the patched inMemoryChannel.

func (*FakeInMemoryChannels) Update

func (c *FakeInMemoryChannels) Update(ctx context.Context, inMemoryChannel *messagingv1.InMemoryChannel, opts v1.UpdateOptions) (result *messagingv1.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

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 FakeMessagingV1

type FakeMessagingV1 struct {
	*testing.Fake
}

func (*FakeMessagingV1) Channels

func (c *FakeMessagingV1) Channels(namespace string) v1.ChannelInterface

func (*FakeMessagingV1) InMemoryChannels

func (c *FakeMessagingV1) InMemoryChannels(namespace string) v1.InMemoryChannelInterface

func (*FakeMessagingV1) RESTClient

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

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

func (*FakeMessagingV1) Subscriptions

func (c *FakeMessagingV1) Subscriptions(namespace string) v1.SubscriptionInterface

type FakeSubscriptions

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

FakeSubscriptions implements SubscriptionInterface

func (*FakeSubscriptions) Create

func (c *FakeSubscriptions) Create(ctx context.Context, subscription *messagingv1.Subscription, opts v1.CreateOptions) (result *messagingv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSubscriptions) Get

func (c *FakeSubscriptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *messagingv1.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

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

func (*FakeSubscriptions) Patch

func (c *FakeSubscriptions) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *messagingv1.Subscription, err error)

Patch applies the patch and returns the patched subscription.

func (*FakeSubscriptions) Update

func (c *FakeSubscriptions) Update(ctx context.Context, subscription *messagingv1.Subscription, opts v1.UpdateOptions) (result *messagingv1.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

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