fake

package
v0.0.0-...-ded4385 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 10 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 FakeCamelV1alpha1

type FakeCamelV1alpha1 struct {
	*testing.Fake
}

func (*FakeCamelV1alpha1) KameletBindings

func (c *FakeCamelV1alpha1) KameletBindings(namespace string) v1alpha1.KameletBindingInterface

func (*FakeCamelV1alpha1) Kamelets

func (c *FakeCamelV1alpha1) Kamelets(namespace string) v1alpha1.KameletInterface

func (*FakeCamelV1alpha1) RESTClient

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

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

type FakeKameletBindings

type FakeKameletBindings struct {
	Fake *FakeCamelV1alpha1
	// contains filtered or unexported fields
}

FakeKameletBindings implements KameletBindingInterface

func (*FakeKameletBindings) Create

func (c *FakeKameletBindings) Create(ctx context.Context, kameletBinding *v1alpha1.KameletBinding, opts v1.CreateOptions) (result *v1alpha1.KameletBinding, err error)

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

func (*FakeKameletBindings) Delete

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

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

func (*FakeKameletBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKameletBindings) Get

func (c *FakeKameletBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.KameletBinding, err error)

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

func (*FakeKameletBindings) List

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

func (*FakeKameletBindings) Patch

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

Patch applies the patch and returns the patched kameletBinding.

func (*FakeKameletBindings) Update

func (c *FakeKameletBindings) Update(ctx context.Context, kameletBinding *v1alpha1.KameletBinding, opts v1.UpdateOptions) (result *v1alpha1.KameletBinding, err error)

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

func (*FakeKameletBindings) UpdateStatus

func (c *FakeKameletBindings) UpdateStatus(ctx context.Context, kameletBinding *v1alpha1.KameletBinding, opts v1.UpdateOptions) (*v1alpha1.KameletBinding, error)

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

func (*FakeKameletBindings) Watch

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

type FakeKamelets

type FakeKamelets struct {
	Fake *FakeCamelV1alpha1
	// contains filtered or unexported fields
}

FakeKamelets implements KameletInterface

func (*FakeKamelets) Create

func (c *FakeKamelets) Create(ctx context.Context, kamelet *v1alpha1.Kamelet, opts v1.CreateOptions) (result *v1alpha1.Kamelet, err error)

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

func (*FakeKamelets) Delete

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

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

func (*FakeKamelets) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeKamelets) Get

func (c *FakeKamelets) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Kamelet, err error)

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

func (*FakeKamelets) List

func (c *FakeKamelets) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.KameletList, err error)

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

func (*FakeKamelets) Patch

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

Patch applies the patch and returns the patched kamelet.

func (*FakeKamelets) Update

func (c *FakeKamelets) Update(ctx context.Context, kamelet *v1alpha1.Kamelet, opts v1.UpdateOptions) (result *v1alpha1.Kamelet, err error)

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

func (*FakeKamelets) UpdateStatus

func (c *FakeKamelets) UpdateStatus(ctx context.Context, kamelet *v1alpha1.Kamelet, opts v1.UpdateOptions) (*v1alpha1.Kamelet, error)

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

func (*FakeKamelets) Watch

func (c *FakeKamelets) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

Jump to

Keyboard shortcuts

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