fake

package
v0.0.0-...-cdcf638 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 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 FakeMessages

type FakeMessages struct {
	Fake *FakeMessengerV1alpha1
	// contains filtered or unexported fields
}

FakeMessages implements MessageInterface

func (*FakeMessages) Create

func (c *FakeMessages) Create(message *v1alpha1.Message) (result *v1alpha1.Message, err error)

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

func (*FakeMessages) Delete

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

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

func (*FakeMessages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMessages) Get

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

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

func (*FakeMessages) List

func (c *FakeMessages) List(opts v1.ListOptions) (result *v1alpha1.MessageList, err error)

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

func (*FakeMessages) Patch

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

Patch applies the patch and returns the patched message.

func (*FakeMessages) Update

func (c *FakeMessages) Update(message *v1alpha1.Message) (result *v1alpha1.Message, err error)

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

func (*FakeMessages) UpdateStatus

func (c *FakeMessages) UpdateStatus(message *v1alpha1.Message) (*v1alpha1.Message, error)

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

func (*FakeMessages) Watch

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

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

type FakeMessagingServices

type FakeMessagingServices struct {
	Fake *FakeMessengerV1alpha1
	// contains filtered or unexported fields
}

FakeMessagingServices implements MessagingServiceInterface

func (*FakeMessagingServices) Create

func (c *FakeMessagingServices) Create(messagingService *v1alpha1.MessagingService) (result *v1alpha1.MessagingService, err error)

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

func (*FakeMessagingServices) Delete

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

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

func (*FakeMessagingServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeMessagingServices) Get

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

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

func (*FakeMessagingServices) List

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

func (*FakeMessagingServices) Patch

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

Patch applies the patch and returns the patched messagingService.

func (*FakeMessagingServices) Update

func (c *FakeMessagingServices) Update(messagingService *v1alpha1.MessagingService) (result *v1alpha1.MessagingService, err error)

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

func (*FakeMessagingServices) Watch

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

type FakeMessengerV1alpha1

type FakeMessengerV1alpha1 struct {
	*testing.Fake
}

func (*FakeMessengerV1alpha1) Messages

func (c *FakeMessengerV1alpha1) Messages(namespace string) v1alpha1.MessageInterface

func (*FakeMessengerV1alpha1) MessagingServices

func (c *FakeMessengerV1alpha1) MessagingServices(namespace string) v1alpha1.MessagingServiceInterface

func (*FakeMessengerV1alpha1) RESTClient

func (c *FakeMessengerV1alpha1) 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
y or Y : Canonical URL