fake

package
v0.0.0-...-1cde5fb Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 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 FakePackageRevisionResourceses

type FakePackageRevisionResourceses struct {
	Fake *FakePkgV1alpha1
	// contains filtered or unexported fields
}

FakePackageRevisionResourceses implements PackageRevisionResourcesInterface

func (*FakePackageRevisionResourceses) 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 (*FakePackageRevisionResourceses) Delete

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

func (*FakePackageRevisionResourceses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageRevisionResourceses) Get

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

func (*FakePackageRevisionResourceses) List

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

func (*FakePackageRevisionResourceses) Patch

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

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

func (*FakePackageRevisionResourceses) Watch

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

type FakePackageRevisions

type FakePackageRevisions struct {
	Fake *FakePkgV1alpha1
	// 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) 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 FakePkgV1alpha1

type FakePkgV1alpha1 struct {
	*testing.Fake
}

func (*FakePkgV1alpha1) PackageRevisionResourceses

func (c *FakePkgV1alpha1) PackageRevisionResourceses(namespace string) v1alpha1.PackageRevisionResourcesInterface

func (*FakePkgV1alpha1) PackageRevisions

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

func (*FakePkgV1alpha1) RESTClient

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