fake

package
Version: v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

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 *FakeSourcesV1
	// contains filtered or unexported fields
}

FakeApiServerSources implements ApiServerSourceInterface

func (*FakeApiServerSources) Create

func (c *FakeApiServerSources) Create(ctx context.Context, apiServerSource *sourcesv1.ApiServerSource, opts v1.CreateOptions) (result *sourcesv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeApiServerSources) Get

func (c *FakeApiServerSources) Get(ctx context.Context, name string, options v1.GetOptions) (result *sourcesv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *sourcesv1.ApiServerSource, err error)

Patch applies the patch and returns the patched apiServerSource.

func (*FakeApiServerSources) Update

func (c *FakeApiServerSources) Update(ctx context.Context, apiServerSource *sourcesv1.ApiServerSource, opts v1.UpdateOptions) (result *sourcesv1.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

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 *FakeSourcesV1
	// contains filtered or unexported fields
}

FakeContainerSources implements ContainerSourceInterface

func (*FakeContainerSources) Create

func (c *FakeContainerSources) Create(ctx context.Context, containerSource *sourcesv1.ContainerSource, opts v1.CreateOptions) (result *sourcesv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeContainerSources) Get

func (c *FakeContainerSources) Get(ctx context.Context, name string, options v1.GetOptions) (result *sourcesv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *sourcesv1.ContainerSource, err error)

Patch applies the patch and returns the patched containerSource.

func (*FakeContainerSources) Update

func (c *FakeContainerSources) Update(ctx context.Context, containerSource *sourcesv1.ContainerSource, opts v1.UpdateOptions) (result *sourcesv1.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

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 FakePingSources added in v0.23.0

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

FakePingSources implements PingSourceInterface

func (*FakePingSources) Create added in v0.23.0

func (c *FakePingSources) Create(ctx context.Context, pingSource *sourcesv1.PingSource, opts v1.CreateOptions) (result *sourcesv1.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.23.0

func (c *FakePingSources) Delete(ctx context.Context, name string, opts v1.DeleteOptions) error

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

func (*FakePingSources) DeleteCollection added in v0.23.0

func (c *FakePingSources) DeleteCollection(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakePingSources) Get added in v0.23.0

func (c *FakePingSources) Get(ctx context.Context, name string, options v1.GetOptions) (result *sourcesv1.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.23.0

func (c *FakePingSources) List(ctx context.Context, opts v1.ListOptions) (result *sourcesv1.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.23.0

func (c *FakePingSources) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *sourcesv1.PingSource, err error)

Patch applies the patch and returns the patched pingSource.

func (*FakePingSources) Update added in v0.23.0

func (c *FakePingSources) Update(ctx context.Context, pingSource *sourcesv1.PingSource, opts v1.UpdateOptions) (result *sourcesv1.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.23.0

func (c *FakePingSources) UpdateStatus(ctx context.Context, pingSource *sourcesv1.PingSource, opts v1.UpdateOptions) (*sourcesv1.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.23.0

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

type FakeSinkBindings

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

FakeSinkBindings implements SinkBindingInterface

func (*FakeSinkBindings) Create

func (c *FakeSinkBindings) Create(ctx context.Context, sinkBinding *sourcesv1.SinkBinding, opts v1.CreateOptions) (result *sourcesv1.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(ctx context.Context, name string, opts 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(ctx context.Context, opts v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeSinkBindings) Get

func (c *FakeSinkBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *sourcesv1.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(ctx context.Context, opts v1.ListOptions) (result *sourcesv1.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(ctx context.Context, name string, pt types.PatchType, data []byte, opts v1.PatchOptions, subresources ...string) (result *sourcesv1.SinkBinding, err error)

Patch applies the patch and returns the patched sinkBinding.

func (*FakeSinkBindings) Update

func (c *FakeSinkBindings) Update(ctx context.Context, sinkBinding *sourcesv1.SinkBinding, opts v1.UpdateOptions) (result *sourcesv1.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(ctx context.Context, sinkBinding *sourcesv1.SinkBinding, opts v1.UpdateOptions) (*sourcesv1.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

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

type FakeSourcesV1

type FakeSourcesV1 struct {
	*testing.Fake
}

func (*FakeSourcesV1) ApiServerSources

func (c *FakeSourcesV1) ApiServerSources(namespace string) v1.ApiServerSourceInterface

func (*FakeSourcesV1) ContainerSources

func (c *FakeSourcesV1) ContainerSources(namespace string) v1.ContainerSourceInterface

func (*FakeSourcesV1) PingSources added in v0.23.0

func (c *FakeSourcesV1) PingSources(namespace string) v1.PingSourceInterface

func (*FakeSourcesV1) RESTClient

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

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

func (*FakeSourcesV1) SinkBindings

func (c *FakeSourcesV1) SinkBindings(namespace string) v1.SinkBindingInterface

Jump to

Keyboard shortcuts

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