fake

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 9 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 FakeHorizonSources added in v0.33.0

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

FakeHorizonSources implements HorizonSourceInterface

func (*FakeHorizonSources) Create added in v0.33.0

func (c *FakeHorizonSources) Create(ctx context.Context, horizonSource *v1alpha1.HorizonSource, opts v1.CreateOptions) (result *v1alpha1.HorizonSource, err error)

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

func (*FakeHorizonSources) Delete added in v0.33.0

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

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

func (*FakeHorizonSources) DeleteCollection added in v0.33.0

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

DeleteCollection deletes a collection of objects.

func (*FakeHorizonSources) Get added in v0.33.0

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

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

func (*FakeHorizonSources) List added in v0.33.0

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

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

func (*FakeHorizonSources) Patch added in v0.33.0

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

Patch applies the patch and returns the patched horizonSource.

func (*FakeHorizonSources) Update added in v0.33.0

func (c *FakeHorizonSources) Update(ctx context.Context, horizonSource *v1alpha1.HorizonSource, opts v1.UpdateOptions) (result *v1alpha1.HorizonSource, err error)

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

func (*FakeHorizonSources) UpdateStatus added in v0.33.0

func (c *FakeHorizonSources) UpdateStatus(ctx context.Context, horizonSource *v1alpha1.HorizonSource, opts v1.UpdateOptions) (*v1alpha1.HorizonSource, error)

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

func (*FakeHorizonSources) Watch added in v0.33.0

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

type FakeSourcesV1alpha1

type FakeSourcesV1alpha1 struct {
	*testing.Fake
}

func (*FakeSourcesV1alpha1) HorizonSources added in v0.33.0

func (c *FakeSourcesV1alpha1) HorizonSources(namespace string) v1alpha1.HorizonSourceInterface

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

func (c *FakeSourcesV1alpha1) VSphereBindings(namespace string) v1alpha1.VSphereBindingInterface

func (*FakeSourcesV1alpha1) VSphereSources

func (c *FakeSourcesV1alpha1) VSphereSources(namespace string) v1alpha1.VSphereSourceInterface

type FakeVSphereBindings

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

FakeVSphereBindings implements VSphereBindingInterface

func (*FakeVSphereBindings) Create

func (c *FakeVSphereBindings) Create(ctx context.Context, vSphereBinding *v1alpha1.VSphereBinding, opts v1.CreateOptions) (result *v1alpha1.VSphereBinding, err error)

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

func (*FakeVSphereBindings) Delete

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

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

func (*FakeVSphereBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVSphereBindings) Get

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

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

func (*FakeVSphereBindings) List

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

func (*FakeVSphereBindings) Patch

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

Patch applies the patch and returns the patched vSphereBinding.

func (*FakeVSphereBindings) Update

func (c *FakeVSphereBindings) Update(ctx context.Context, vSphereBinding *v1alpha1.VSphereBinding, opts v1.UpdateOptions) (result *v1alpha1.VSphereBinding, err error)

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

func (*FakeVSphereBindings) UpdateStatus

func (c *FakeVSphereBindings) UpdateStatus(ctx context.Context, vSphereBinding *v1alpha1.VSphereBinding, opts v1.UpdateOptions) (*v1alpha1.VSphereBinding, error)

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

func (*FakeVSphereBindings) Watch

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

type FakeVSphereSources

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

FakeVSphereSources implements VSphereSourceInterface

func (*FakeVSphereSources) Create

func (c *FakeVSphereSources) Create(ctx context.Context, vSphereSource *v1alpha1.VSphereSource, opts v1.CreateOptions) (result *v1alpha1.VSphereSource, err error)

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

func (*FakeVSphereSources) Delete

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

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

func (*FakeVSphereSources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVSphereSources) Get

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

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

func (*FakeVSphereSources) List

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

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

func (*FakeVSphereSources) Patch

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

Patch applies the patch and returns the patched vSphereSource.

func (*FakeVSphereSources) Update

func (c *FakeVSphereSources) Update(ctx context.Context, vSphereSource *v1alpha1.VSphereSource, opts v1.UpdateOptions) (result *v1alpha1.VSphereSource, err error)

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

func (*FakeVSphereSources) UpdateStatus

func (c *FakeVSphereSources) UpdateStatus(ctx context.Context, vSphereSource *v1alpha1.VSphereSource, opts v1.UpdateOptions) (*v1alpha1.VSphereSource, error)

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

func (*FakeVSphereSources) Watch

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

Jump to

Keyboard shortcuts

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