fake

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 12 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 FakeAPIBindings

type FakeAPIBindings struct {
	Fake *FakeApisV1alpha1
}

FakeAPIBindings implements APIBindingInterface

func (*FakeAPIBindings) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied aPIBinding.

func (*FakeAPIBindings) ApplyStatus

func (c *FakeAPIBindings) ApplyStatus(ctx context.Context, aPIBinding *apisv1alpha1.APIBindingApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.APIBinding, err error)

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

func (*FakeAPIBindings) Create

func (c *FakeAPIBindings) Create(ctx context.Context, aPIBinding *v1alpha1.APIBinding, opts v1.CreateOptions) (result *v1alpha1.APIBinding, err error)

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

func (*FakeAPIBindings) Delete

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

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

func (*FakeAPIBindings) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPIBindings) Get

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

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

func (*FakeAPIBindings) List

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

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

func (*FakeAPIBindings) Patch

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

Patch applies the patch and returns the patched aPIBinding.

func (*FakeAPIBindings) Update

func (c *FakeAPIBindings) Update(ctx context.Context, aPIBinding *v1alpha1.APIBinding, opts v1.UpdateOptions) (result *v1alpha1.APIBinding, err error)

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

func (*FakeAPIBindings) UpdateStatus

func (c *FakeAPIBindings) UpdateStatus(ctx context.Context, aPIBinding *v1alpha1.APIBinding, opts v1.UpdateOptions) (*v1alpha1.APIBinding, error)

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

func (*FakeAPIBindings) Watch

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

type FakeAPIConversions

type FakeAPIConversions struct {
	Fake *FakeApisV1alpha1
}

FakeAPIConversions implements APIConversionInterface

func (*FakeAPIConversions) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied aPIConversion.

func (*FakeAPIConversions) Create

func (c *FakeAPIConversions) Create(ctx context.Context, aPIConversion *v1alpha1.APIConversion, opts v1.CreateOptions) (result *v1alpha1.APIConversion, err error)

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

func (*FakeAPIConversions) Delete

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

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

func (*FakeAPIConversions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPIConversions) Get

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

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

func (*FakeAPIConversions) List

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

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

func (*FakeAPIConversions) Patch

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

Patch applies the patch and returns the patched aPIConversion.

func (*FakeAPIConversions) Update

func (c *FakeAPIConversions) Update(ctx context.Context, aPIConversion *v1alpha1.APIConversion, opts v1.UpdateOptions) (result *v1alpha1.APIConversion, err error)

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

func (*FakeAPIConversions) Watch

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

type FakeAPIExportEndpointSlices

type FakeAPIExportEndpointSlices struct {
	Fake *FakeApisV1alpha1
}

FakeAPIExportEndpointSlices implements APIExportEndpointSliceInterface

func (*FakeAPIExportEndpointSlices) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied aPIExportEndpointSlice.

func (*FakeAPIExportEndpointSlices) ApplyStatus

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

func (*FakeAPIExportEndpointSlices) Create

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

func (*FakeAPIExportEndpointSlices) Delete

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

func (*FakeAPIExportEndpointSlices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPIExportEndpointSlices) Get

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

func (*FakeAPIExportEndpointSlices) List

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

func (*FakeAPIExportEndpointSlices) Patch

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

Patch applies the patch and returns the patched aPIExportEndpointSlice.

func (*FakeAPIExportEndpointSlices) Update

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

func (*FakeAPIExportEndpointSlices) UpdateStatus

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

func (*FakeAPIExportEndpointSlices) Watch

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

type FakeAPIExports

type FakeAPIExports struct {
	Fake *FakeApisV1alpha1
}

FakeAPIExports implements APIExportInterface

func (*FakeAPIExports) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied aPIExport.

func (*FakeAPIExports) ApplyStatus

func (c *FakeAPIExports) ApplyStatus(ctx context.Context, aPIExport *apisv1alpha1.APIExportApplyConfiguration, opts v1.ApplyOptions) (result *v1alpha1.APIExport, err error)

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

func (*FakeAPIExports) Create

func (c *FakeAPIExports) Create(ctx context.Context, aPIExport *v1alpha1.APIExport, opts v1.CreateOptions) (result *v1alpha1.APIExport, err error)

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

func (*FakeAPIExports) Delete

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

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

func (*FakeAPIExports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPIExports) Get

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

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

func (*FakeAPIExports) List

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

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

func (*FakeAPIExports) Patch

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

Patch applies the patch and returns the patched aPIExport.

func (*FakeAPIExports) Update

func (c *FakeAPIExports) Update(ctx context.Context, aPIExport *v1alpha1.APIExport, opts v1.UpdateOptions) (result *v1alpha1.APIExport, err error)

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

func (*FakeAPIExports) UpdateStatus

func (c *FakeAPIExports) UpdateStatus(ctx context.Context, aPIExport *v1alpha1.APIExport, opts v1.UpdateOptions) (*v1alpha1.APIExport, error)

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

func (*FakeAPIExports) Watch

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

type FakeAPIResourceSchemas

type FakeAPIResourceSchemas struct {
	Fake *FakeApisV1alpha1
}

FakeAPIResourceSchemas implements APIResourceSchemaInterface

func (*FakeAPIResourceSchemas) Apply

Apply takes the given apply declarative configuration, applies it and returns the applied aPIResourceSchema.

func (*FakeAPIResourceSchemas) Create

func (c *FakeAPIResourceSchemas) Create(ctx context.Context, aPIResourceSchema *v1alpha1.APIResourceSchema, opts v1.CreateOptions) (result *v1alpha1.APIResourceSchema, err error)

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

func (*FakeAPIResourceSchemas) Delete

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

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

func (*FakeAPIResourceSchemas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPIResourceSchemas) Get

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

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

func (*FakeAPIResourceSchemas) List

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

func (*FakeAPIResourceSchemas) Patch

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

Patch applies the patch and returns the patched aPIResourceSchema.

func (*FakeAPIResourceSchemas) Update

func (c *FakeAPIResourceSchemas) Update(ctx context.Context, aPIResourceSchema *v1alpha1.APIResourceSchema, opts v1.UpdateOptions) (result *v1alpha1.APIResourceSchema, err error)

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

func (*FakeAPIResourceSchemas) Watch

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

type FakeApisV1alpha1

type FakeApisV1alpha1 struct {
	*testing.Fake
}

func (*FakeApisV1alpha1) APIBindings

func (*FakeApisV1alpha1) APIConversions

func (c *FakeApisV1alpha1) APIConversions() v1alpha1.APIConversionInterface

func (*FakeApisV1alpha1) APIExportEndpointSlices

func (c *FakeApisV1alpha1) APIExportEndpointSlices() v1alpha1.APIExportEndpointSliceInterface

func (*FakeApisV1alpha1) APIExports

func (*FakeApisV1alpha1) APIResourceSchemas

func (c *FakeApisV1alpha1) APIResourceSchemas() v1alpha1.APIResourceSchemaInterface

func (*FakeApisV1alpha1) RESTClient

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

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

Jump to

Keyboard shortcuts

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