fake

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 9 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 FakeOperatorsV1

type FakeOperatorsV1 struct {
	*testing.Fake
}

func (*FakeOperatorsV1) PackageManifests

func (c *FakeOperatorsV1) PackageManifests(namespace string) v1.PackageManifestInterface

func (*FakeOperatorsV1) RESTClient

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

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

type FakePackageManifests

type FakePackageManifests struct {
	Fake *FakeOperatorsV1
	// contains filtered or unexported fields
}

FakePackageManifests implements PackageManifestInterface

func (*FakePackageManifests) Create

func (c *FakePackageManifests) Create(ctx context.Context, packageManifest *v1.PackageManifest, opts metav1.CreateOptions) (result *v1.PackageManifest, err error)

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

func (*FakePackageManifests) Delete

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

func (*FakePackageManifests) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageManifests) Get

func (c *FakePackageManifests) Get(ctx context.Context, name string, options metav1.GetOptions) (result *v1.PackageManifest, err error)

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

func (*FakePackageManifests) List

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

func (*FakePackageManifests) Patch

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

Patch applies the patch and returns the patched packageManifest.

func (*FakePackageManifests) Update

func (c *FakePackageManifests) Update(ctx context.Context, packageManifest *v1.PackageManifest, opts metav1.UpdateOptions) (result *v1.PackageManifest, err error)

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

func (*FakePackageManifests) UpdateStatus

func (c *FakePackageManifests) UpdateStatus(ctx context.Context, packageManifest *v1.PackageManifest, opts metav1.UpdateOptions) (*v1.PackageManifest, error)

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

func (*FakePackageManifests) Watch

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

Jump to

Keyboard shortcuts

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