Documentation ¶
Overview ¶
Package fake has the automatically generated clients.
Index ¶
- type FakeChannels
- func (c *FakeChannels) Create(ctx context.Context, channel *v1alpha1.Channel, opts v1.CreateOptions) (result *v1alpha1.Channel, err error)
- func (c *FakeChannels) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error
- func (c *FakeChannels) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error
- func (c *FakeChannels) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Channel, err error)
- func (c *FakeChannels) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.ChannelList, err error)
- func (c *FakeChannels) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, ...) (result *v1alpha1.Channel, err error)
- func (c *FakeChannels) Update(ctx context.Context, channel *v1alpha1.Channel, opts v1.UpdateOptions) (result *v1alpha1.Channel, err error)
- func (c *FakeChannels) UpdateStatus(ctx context.Context, channel *v1alpha1.Channel, opts v1.UpdateOptions) (*v1alpha1.Channel, error)
- func (c *FakeChannels) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
- type FakeMessagingV1alpha1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeChannels ¶
type FakeChannels struct { Fake *FakeMessagingV1alpha1 // contains filtered or unexported fields }
FakeChannels implements ChannelInterface
func (*FakeChannels) Create ¶
func (c *FakeChannels) Create(ctx context.Context, channel *v1alpha1.Channel, opts v1.CreateOptions) (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(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 *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(ctx context.Context, 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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *v1alpha1.Channel, err error)
Patch applies the patch and returns the patched channel.
func (*FakeChannels) Update ¶
func (c *FakeChannels) Update(ctx context.Context, channel *v1alpha1.Channel, opts v1.UpdateOptions) (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 ¶
func (c *FakeChannels) UpdateStatus(ctx context.Context, channel *v1alpha1.Channel, opts v1.UpdateOptions) (*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(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)
Watch returns a watch.Interface that watches the requested channels.
type FakeMessagingV1alpha1 ¶
func (*FakeMessagingV1alpha1) Channels ¶
func (c *FakeMessagingV1alpha1) Channels(namespace string) v1alpha1.ChannelInterface
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.