fake

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

github.com/radu-matei/event-operator

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 FakeEventProviders

type FakeEventProviders struct {
	Fake *FakeEventproviderV1alpha1
	// contains filtered or unexported fields
}

FakeEventProviders implements EventProviderInterface

func (*FakeEventProviders) Create

func (c *FakeEventProviders) Create(eventProvider *v1alpha1.EventProvider) (result *v1alpha1.EventProvider, err error)

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

func (*FakeEventProviders) Delete

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

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

func (*FakeEventProviders) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEventProviders) Get

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

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

func (*FakeEventProviders) List

func (c *FakeEventProviders) List(opts v1.ListOptions) (result *v1alpha1.EventProviderList, err error)

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

func (*FakeEventProviders) Patch

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

Patch applies the patch and returns the patched eventProvider.

func (*FakeEventProviders) Update

func (c *FakeEventProviders) Update(eventProvider *v1alpha1.EventProvider) (result *v1alpha1.EventProvider, err error)

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

func (*FakeEventProviders) Watch

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

type FakeEventproviderV1alpha1

type FakeEventproviderV1alpha1 struct {
	*testing.Fake
}

func (*FakeEventproviderV1alpha1) EventProviders

func (c *FakeEventproviderV1alpha1) EventProviders(namespace string) v1alpha1.EventProviderInterface

func (*FakeEventproviderV1alpha1) RESTClient

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