fake

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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 FakeApiServerSources

type FakeApiServerSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeApiServerSources implements ApiServerSourceInterface

func (*FakeApiServerSources) Create

func (c *FakeApiServerSources) Create(apiServerSource *v1alpha1.ApiServerSource) (result *v1alpha1.ApiServerSource, err error)

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

func (*FakeApiServerSources) Delete

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

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

func (*FakeApiServerSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeApiServerSources) Get

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

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

func (*FakeApiServerSources) List

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

func (*FakeApiServerSources) Patch

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

Patch applies the patch and returns the patched apiServerSource.

func (*FakeApiServerSources) Update

func (c *FakeApiServerSources) Update(apiServerSource *v1alpha1.ApiServerSource) (result *v1alpha1.ApiServerSource, err error)

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

func (*FakeApiServerSources) UpdateStatus

func (c *FakeApiServerSources) UpdateStatus(apiServerSource *v1alpha1.ApiServerSource) (*v1alpha1.ApiServerSource, error)

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

func (*FakeApiServerSources) Watch

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

type FakePingSources added in v0.13.0

type FakePingSources struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakePingSources implements PingSourceInterface

func (*FakePingSources) Create added in v0.13.0

func (c *FakePingSources) Create(pingSource *v1alpha1.PingSource) (result *v1alpha1.PingSource, err error)

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

func (*FakePingSources) Delete added in v0.13.0

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

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

func (*FakePingSources) DeleteCollection added in v0.13.0

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

DeleteCollection deletes a collection of objects.

func (*FakePingSources) Get added in v0.13.0

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

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

func (*FakePingSources) List added in v0.13.0

func (c *FakePingSources) List(opts v1.ListOptions) (result *v1alpha1.PingSourceList, err error)

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

func (*FakePingSources) Patch added in v0.13.0

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

Patch applies the patch and returns the patched pingSource.

func (*FakePingSources) Update added in v0.13.0

func (c *FakePingSources) Update(pingSource *v1alpha1.PingSource) (result *v1alpha1.PingSource, err error)

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

func (*FakePingSources) UpdateStatus added in v0.13.0

func (c *FakePingSources) UpdateStatus(pingSource *v1alpha1.PingSource) (*v1alpha1.PingSource, error)

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

func (*FakePingSources) Watch added in v0.13.0

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

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

type FakeSinkBindings added in v0.11.0

type FakeSinkBindings struct {
	Fake *FakeSourcesV1alpha1
	// contains filtered or unexported fields
}

FakeSinkBindings implements SinkBindingInterface

func (*FakeSinkBindings) Create added in v0.11.0

func (c *FakeSinkBindings) Create(sinkBinding *v1alpha1.SinkBinding) (result *v1alpha1.SinkBinding, err error)

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

func (*FakeSinkBindings) Delete added in v0.11.0

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

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

func (*FakeSinkBindings) DeleteCollection added in v0.11.0

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

DeleteCollection deletes a collection of objects.

func (*FakeSinkBindings) Get added in v0.11.0

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

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

func (*FakeSinkBindings) List added in v0.11.0

func (c *FakeSinkBindings) List(opts v1.ListOptions) (result *v1alpha1.SinkBindingList, err error)

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

func (*FakeSinkBindings) Patch added in v0.11.0

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

Patch applies the patch and returns the patched sinkBinding.

func (*FakeSinkBindings) Update added in v0.11.0

func (c *FakeSinkBindings) Update(sinkBinding *v1alpha1.SinkBinding) (result *v1alpha1.SinkBinding, err error)

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

func (*FakeSinkBindings) UpdateStatus added in v0.11.0

func (c *FakeSinkBindings) UpdateStatus(sinkBinding *v1alpha1.SinkBinding) (*v1alpha1.SinkBinding, error)

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

func (*FakeSinkBindings) Watch added in v0.11.0

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

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

type FakeSourcesV1alpha1

type FakeSourcesV1alpha1 struct {
	*testing.Fake
}

func (*FakeSourcesV1alpha1) ApiServerSources

func (c *FakeSourcesV1alpha1) ApiServerSources(namespace string) v1alpha1.ApiServerSourceInterface

func (*FakeSourcesV1alpha1) PingSources added in v0.13.0

func (c *FakeSourcesV1alpha1) PingSources(namespace string) v1alpha1.PingSourceInterface

func (*FakeSourcesV1alpha1) RESTClient

func (c *FakeSourcesV1alpha1) RESTClient() rest.Interface

RESTClient returns a RESTClient that is used to communicate with API server by this client implementation.

func (*FakeSourcesV1alpha1) SinkBindings added in v0.11.0

func (c *FakeSourcesV1alpha1) SinkBindings(namespace string) v1alpha1.SinkBindingInterface

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL