fake

package
v0.14.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2020 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 FakeKnativeEventings added in v0.12.0

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

FakeKnativeEventings implements KnativeEventingInterface

func (*FakeKnativeEventings) Create added in v0.12.0

func (c *FakeKnativeEventings) Create(knativeEventing *v1alpha1.KnativeEventing) (result *v1alpha1.KnativeEventing, err error)

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

func (*FakeKnativeEventings) Delete added in v0.12.0

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

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

func (*FakeKnativeEventings) DeleteCollection added in v0.12.0

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

DeleteCollection deletes a collection of objects.

func (*FakeKnativeEventings) Get added in v0.12.0

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

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

func (*FakeKnativeEventings) List added in v0.12.0

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

func (*FakeKnativeEventings) Patch added in v0.12.0

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

Patch applies the patch and returns the patched knativeEventing.

func (*FakeKnativeEventings) Update added in v0.12.0

func (c *FakeKnativeEventings) Update(knativeEventing *v1alpha1.KnativeEventing) (result *v1alpha1.KnativeEventing, err error)

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

func (*FakeKnativeEventings) UpdateStatus added in v0.12.0

func (c *FakeKnativeEventings) UpdateStatus(knativeEventing *v1alpha1.KnativeEventing) (*v1alpha1.KnativeEventing, error)

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

func (*FakeKnativeEventings) Watch added in v0.12.0

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

type FakeOperatorV1alpha1

type FakeOperatorV1alpha1 struct {
	*testing.Fake
}

func (*FakeOperatorV1alpha1) KnativeEventings added in v0.12.0

func (c *FakeOperatorV1alpha1) KnativeEventings(namespace string) v1alpha1.KnativeEventingInterface

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