fake

package
Version: v0.13.8 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 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 FakeContainerSources

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

FakeContainerSources implements ContainerSourceInterface

func (*FakeContainerSources) Create

func (c *FakeContainerSources) Create(containerSource *v1alpha1.ContainerSource) (result *v1alpha1.ContainerSource, err error)

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

func (*FakeContainerSources) Delete

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

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

func (*FakeContainerSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeContainerSources) Get

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

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

func (*FakeContainerSources) List

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

func (*FakeContainerSources) Patch

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

Patch applies the patch and returns the patched containerSource.

func (*FakeContainerSources) Update

func (c *FakeContainerSources) Update(containerSource *v1alpha1.ContainerSource) (result *v1alpha1.ContainerSource, err error)

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

func (*FakeContainerSources) UpdateStatus

func (c *FakeContainerSources) UpdateStatus(containerSource *v1alpha1.ContainerSource) (*v1alpha1.ContainerSource, error)

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

func (*FakeContainerSources) Watch

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

type FakeCronJobSources

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

FakeCronJobSources implements CronJobSourceInterface

func (*FakeCronJobSources) Create

func (c *FakeCronJobSources) Create(cronJobSource *v1alpha1.CronJobSource) (result *v1alpha1.CronJobSource, err error)

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

func (*FakeCronJobSources) Delete

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

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

func (*FakeCronJobSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCronJobSources) Get

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

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

func (*FakeCronJobSources) List

func (c *FakeCronJobSources) List(opts v1.ListOptions) (result *v1alpha1.CronJobSourceList, err error)

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

func (*FakeCronJobSources) Patch

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

Patch applies the patch and returns the patched cronJobSource.

func (*FakeCronJobSources) Update

func (c *FakeCronJobSources) Update(cronJobSource *v1alpha1.CronJobSource) (result *v1alpha1.CronJobSource, err error)

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

func (*FakeCronJobSources) UpdateStatus

func (c *FakeCronJobSources) UpdateStatus(cronJobSource *v1alpha1.CronJobSource) (*v1alpha1.CronJobSource, error)

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

func (*FakeCronJobSources) Watch

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

type FakeSinkBindings

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

FakeSinkBindings implements SinkBindingInterface

func (*FakeSinkBindings) Create

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

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

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

DeleteCollection deletes a collection of objects.

func (*FakeSinkBindings) Get

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

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

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

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

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

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) ContainerSources

func (c *FakeSourcesV1alpha1) ContainerSources(namespace string) v1alpha1.ContainerSourceInterface

func (*FakeSourcesV1alpha1) CronJobSources

func (c *FakeSourcesV1alpha1) CronJobSources(namespace string) v1alpha1.CronJobSourceInterface

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

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