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 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) InMemoryChannels

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

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

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.

Jump to

Keyboard shortcuts

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