fake

package
v0.0.0-...-c8ac227 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2019 License: Apache-2.0 Imports: 9 Imported by: 1

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 FakeBots

type FakeBots struct {
	Fake *FakeLineV1alpha1
	// contains filtered or unexported fields
}

FakeBots implements BotInterface

func (*FakeBots) Create

func (c *FakeBots) Create(bot *v1alpha1.Bot) (result *v1alpha1.Bot, err error)

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

func (*FakeBots) Delete

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

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

func (*FakeBots) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBots) Get

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

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

func (*FakeBots) List

func (c *FakeBots) List(opts v1.ListOptions) (result *v1alpha1.BotList, err error)

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

func (*FakeBots) Patch

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

Patch applies the patch and returns the patched bot.

func (*FakeBots) Update

func (c *FakeBots) Update(bot *v1alpha1.Bot) (result *v1alpha1.Bot, err error)

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

func (*FakeBots) UpdateStatus

func (c *FakeBots) UpdateStatus(bot *v1alpha1.Bot) (*v1alpha1.Bot, error)

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

func (*FakeBots) Watch

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

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

type FakeEventBindings

type FakeEventBindings struct {
	Fake *FakeLineV1alpha1
	// contains filtered or unexported fields
}

FakeEventBindings implements EventBindingInterface

func (*FakeEventBindings) Create

func (c *FakeEventBindings) Create(eventBinding *v1alpha1.EventBinding) (result *v1alpha1.EventBinding, err error)

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

func (*FakeEventBindings) Delete

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

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

func (*FakeEventBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventBindings) Get

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

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

func (*FakeEventBindings) List

func (c *FakeEventBindings) List(opts v1.ListOptions) (result *v1alpha1.EventBindingList, err error)

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

func (*FakeEventBindings) Patch

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

Patch applies the patch and returns the patched eventBinding.

func (*FakeEventBindings) Update

func (c *FakeEventBindings) Update(eventBinding *v1alpha1.EventBinding) (result *v1alpha1.EventBinding, err error)

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

func (*FakeEventBindings) Watch

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

type FakeEvents

type FakeEvents struct {
	Fake *FakeLineV1alpha1
	// contains filtered or unexported fields
}

FakeEvents implements EventInterface

func (*FakeEvents) Create

func (c *FakeEvents) Create(event *v1alpha1.Event) (result *v1alpha1.Event, err error)

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

func (*FakeEvents) Delete

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

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

func (*FakeEvents) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEvents) Get

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

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

func (*FakeEvents) List

func (c *FakeEvents) List(opts v1.ListOptions) (result *v1alpha1.EventList, err error)

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

func (*FakeEvents) Patch

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

Patch applies the patch and returns the patched event.

func (*FakeEvents) Update

func (c *FakeEvents) Update(event *v1alpha1.Event) (result *v1alpha1.Event, err error)

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

func (*FakeEvents) Watch

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

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

type FakeLineV1alpha1

type FakeLineV1alpha1 struct {
	*testing.Fake
}

func (*FakeLineV1alpha1) Bots

func (c *FakeLineV1alpha1) Bots(namespace string) v1alpha1.BotInterface

func (*FakeLineV1alpha1) EventBindings

func (c *FakeLineV1alpha1) EventBindings(namespace string) v1alpha1.EventBindingInterface

func (*FakeLineV1alpha1) Events

func (c *FakeLineV1alpha1) Events(namespace string) v1alpha1.EventInterface

func (*FakeLineV1alpha1) RESTClient

func (c *FakeLineV1alpha1) 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