fake

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 13 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 FakeAPIResourceImports

type FakeAPIResourceImports struct {
	Fake *FakeApiresourceV1alpha1
}

FakeAPIResourceImports implements APIResourceImportInterface

func (*FakeAPIResourceImports) Apply

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

func (*FakeAPIResourceImports) ApplyStatus

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

func (*FakeAPIResourceImports) Create

func (c *FakeAPIResourceImports) Create(ctx context.Context, aPIResourceImport *v1alpha1.APIResourceImport, opts v1.CreateOptions) (result *v1alpha1.APIResourceImport, err error)

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

func (*FakeAPIResourceImports) Delete

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

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

func (*FakeAPIResourceImports) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeAPIResourceImports) Get

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

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

func (*FakeAPIResourceImports) List

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

func (*FakeAPIResourceImports) Patch

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

Patch applies the patch and returns the patched aPIResourceImport.

func (*FakeAPIResourceImports) Update

func (c *FakeAPIResourceImports) Update(ctx context.Context, aPIResourceImport *v1alpha1.APIResourceImport, opts v1.UpdateOptions) (result *v1alpha1.APIResourceImport, err error)

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

func (*FakeAPIResourceImports) UpdateStatus

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

func (*FakeAPIResourceImports) Watch

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

type FakeApiresourceV1alpha1

type FakeApiresourceV1alpha1 struct {
	*testing.Fake
}

func (*FakeApiresourceV1alpha1) APIResourceImports

func (*FakeApiresourceV1alpha1) NegotiatedAPIResources

func (*FakeApiresourceV1alpha1) RESTClient

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

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

type FakeNegotiatedAPIResources

type FakeNegotiatedAPIResources struct {
	Fake *FakeApiresourceV1alpha1
}

FakeNegotiatedAPIResources implements NegotiatedAPIResourceInterface

func (*FakeNegotiatedAPIResources) Apply

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

func (*FakeNegotiatedAPIResources) ApplyStatus

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

func (*FakeNegotiatedAPIResources) Create

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

func (*FakeNegotiatedAPIResources) Delete

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

func (*FakeNegotiatedAPIResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeNegotiatedAPIResources) Get

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

func (*FakeNegotiatedAPIResources) List

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

func (*FakeNegotiatedAPIResources) Patch

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

Patch applies the patch and returns the patched negotiatedAPIResource.

func (*FakeNegotiatedAPIResources) Update

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

func (*FakeNegotiatedAPIResources) UpdateStatus

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

func (*FakeNegotiatedAPIResources) Watch

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

Jump to

Keyboard shortcuts

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