fake

package
v0.0.0-...-b66af7b Latest Latest
Warning

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

Go to latest
Published: Oct 17, 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 FakeEventings

type FakeEventings struct {
	Fake *FakeOperatorV1alpha1
	// contains filtered or unexported fields
}

FakeEventings implements EventingInterface

func (*FakeEventings) Create

func (c *FakeEventings) Create(eventing *v1alpha1.Eventing) (result *v1alpha1.Eventing, err error)

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

func (*FakeEventings) Delete

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

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

func (*FakeEventings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventings) Get

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

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

func (*FakeEventings) List

func (c *FakeEventings) List(opts v1.ListOptions) (result *v1alpha1.EventingList, err error)

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

func (*FakeEventings) Patch

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

Patch applies the patch and returns the patched eventing.

func (*FakeEventings) Update

func (c *FakeEventings) Update(eventing *v1alpha1.Eventing) (result *v1alpha1.Eventing, err error)

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

func (*FakeEventings) UpdateStatus

func (c *FakeEventings) UpdateStatus(eventing *v1alpha1.Eventing) (*v1alpha1.Eventing, error)

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

func (*FakeEventings) Watch

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

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

type FakeOperatorV1alpha1

type FakeOperatorV1alpha1 struct {
	*testing.Fake
}

func (*FakeOperatorV1alpha1) Eventings

func (c *FakeOperatorV1alpha1) Eventings(namespace string) v1alpha1.EventingInterface

func (*FakeOperatorV1alpha1) RESTClient

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