fake

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 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 FakeServiceBindings

type FakeServiceBindings struct {
	Fake *FakeServicebindingV1alpha3
	// contains filtered or unexported fields
}

FakeServiceBindings implements ServiceBindingInterface

func (*FakeServiceBindings) Create

func (c *FakeServiceBindings) Create(ctx context.Context, serviceBinding *v1alpha3.ServiceBinding, opts v1.CreateOptions) (result *v1alpha3.ServiceBinding, err error)

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

func (*FakeServiceBindings) Delete

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

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

func (*FakeServiceBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServiceBindings) Get

func (c *FakeServiceBindings) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha3.ServiceBinding, err error)

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

func (*FakeServiceBindings) List

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

func (*FakeServiceBindings) Patch

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

Patch applies the patch and returns the patched serviceBinding.

func (*FakeServiceBindings) Update

func (c *FakeServiceBindings) Update(ctx context.Context, serviceBinding *v1alpha3.ServiceBinding, opts v1.UpdateOptions) (result *v1alpha3.ServiceBinding, err error)

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

func (*FakeServiceBindings) UpdateStatus

func (c *FakeServiceBindings) UpdateStatus(ctx context.Context, serviceBinding *v1alpha3.ServiceBinding, opts v1.UpdateOptions) (*v1alpha3.ServiceBinding, error)

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

func (*FakeServiceBindings) Watch

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

type FakeServicebindingV1alpha3

type FakeServicebindingV1alpha3 struct {
	*testing.Fake
}

func (*FakeServicebindingV1alpha3) RESTClient

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

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

func (*FakeServicebindingV1alpha3) ServiceBindings

func (c *FakeServicebindingV1alpha3) ServiceBindings(namespace string) v1alpha3.ServiceBindingInterface

Jump to

Keyboard shortcuts

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