fake

package
v0.0.0-...-5cbd3cb Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: Apache-2.0 Imports: 10 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 FakeFunctions

type FakeFunctions struct {
	Fake *FakePorchV1alpha1
	// contains filtered or unexported fields
}

FakeFunctions implements FunctionInterface

func (*FakeFunctions) Create

func (c *FakeFunctions) Create(ctx context.Context, function *v1alpha1.Function, opts v1.CreateOptions) (result *v1alpha1.Function, err error)

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

func (*FakeFunctions) Delete

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

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

func (*FakeFunctions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeFunctions) Get

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

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

func (*FakeFunctions) List

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

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

func (*FakeFunctions) Patch

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

Patch applies the patch and returns the patched function.

func (*FakeFunctions) Update

func (c *FakeFunctions) Update(ctx context.Context, function *v1alpha1.Function, opts v1.UpdateOptions) (result *v1alpha1.Function, err error)

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

func (*FakeFunctions) UpdateStatus

func (c *FakeFunctions) UpdateStatus(ctx context.Context, function *v1alpha1.Function, opts v1.UpdateOptions) (*v1alpha1.Function, error)

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

func (*FakeFunctions) Watch

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

type FakePackageRevisionResources

type FakePackageRevisionResources struct {
	Fake *FakePorchV1alpha1
	// contains filtered or unexported fields
}

FakePackageRevisionResources implements PackageRevisionResourcesInterface

func (*FakePackageRevisionResources) Create

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

func (*FakePackageRevisionResources) Delete

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

func (*FakePackageRevisionResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageRevisionResources) Get

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

func (*FakePackageRevisionResources) List

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

func (*FakePackageRevisionResources) Patch

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

Patch applies the patch and returns the patched packageRevisionResources.

func (*FakePackageRevisionResources) Update

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

func (*FakePackageRevisionResources) UpdateStatus

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

func (*FakePackageRevisionResources) Watch

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

type FakePackageRevisions

type FakePackageRevisions struct {
	Fake *FakePorchV1alpha1
	// contains filtered or unexported fields
}

FakePackageRevisions implements PackageRevisionInterface

func (*FakePackageRevisions) Create

func (c *FakePackageRevisions) Create(ctx context.Context, packageRevision *v1alpha1.PackageRevision, opts v1.CreateOptions) (result *v1alpha1.PackageRevision, err error)

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

func (*FakePackageRevisions) Delete

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

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

func (*FakePackageRevisions) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageRevisions) Get

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

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

func (*FakePackageRevisions) List

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

func (*FakePackageRevisions) Patch

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

Patch applies the patch and returns the patched packageRevision.

func (*FakePackageRevisions) Update

func (c *FakePackageRevisions) Update(ctx context.Context, packageRevision *v1alpha1.PackageRevision, opts v1.UpdateOptions) (result *v1alpha1.PackageRevision, err error)

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

func (*FakePackageRevisions) UpdateApproval

func (c *FakePackageRevisions) UpdateApproval(ctx context.Context, packageRevisionName string, packageRevision *v1alpha1.PackageRevision, opts v1.UpdateOptions) (result *v1alpha1.PackageRevision, err error)

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

func (*FakePackageRevisions) UpdateStatus

func (c *FakePackageRevisions) UpdateStatus(ctx context.Context, packageRevision *v1alpha1.PackageRevision, opts v1.UpdateOptions) (*v1alpha1.PackageRevision, error)

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

func (*FakePackageRevisions) Watch

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

type FakePackages

type FakePackages struct {
	Fake *FakePorchV1alpha1
	// contains filtered or unexported fields
}

FakePackages implements PackageInterface

func (*FakePackages) Create

func (c *FakePackages) Create(ctx context.Context, pkg *v1alpha1.Package, opts v1.CreateOptions) (result *v1alpha1.Package, err error)

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

func (*FakePackages) Delete

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

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

func (*FakePackages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackages) Get

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

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

func (*FakePackages) List

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

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

func (*FakePackages) Patch

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

Patch applies the patch and returns the patched pkg.

func (*FakePackages) Update

func (c *FakePackages) Update(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (result *v1alpha1.Package, err error)

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

func (*FakePackages) UpdateStatus

func (c *FakePackages) UpdateStatus(ctx context.Context, pkg *v1alpha1.Package, opts v1.UpdateOptions) (*v1alpha1.Package, error)

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

func (*FakePackages) Watch

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

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

type FakePorchV1alpha1

type FakePorchV1alpha1 struct {
	*testing.Fake
}

func (*FakePorchV1alpha1) Functions

func (c *FakePorchV1alpha1) Functions(namespace string) v1alpha1.FunctionInterface

func (*FakePorchV1alpha1) PackageRevisionResources

func (c *FakePorchV1alpha1) PackageRevisionResources(namespace string) v1alpha1.PackageRevisionResourcesInterface

func (*FakePorchV1alpha1) PackageRevisions

func (c *FakePorchV1alpha1) PackageRevisions(namespace string) v1alpha1.PackageRevisionInterface

func (*FakePorchV1alpha1) Packages

func (c *FakePorchV1alpha1) Packages(namespace string) v1alpha1.PackageInterface

func (*FakePorchV1alpha1) RESTClient

func (c *FakePorchV1alpha1) 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