fake

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 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 FakePackageInstalls

type FakePackageInstalls struct {
	Fake *FakePackagingV1alpha1
	// contains filtered or unexported fields
}

FakePackageInstalls implements PackageInstallInterface

func (*FakePackageInstalls) Create

func (c *FakePackageInstalls) Create(ctx context.Context, packageInstall *v1alpha1.PackageInstall, opts v1.CreateOptions) (result *v1alpha1.PackageInstall, err error)

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

func (*FakePackageInstalls) Delete

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

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

func (*FakePackageInstalls) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageInstalls) Get

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

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

func (*FakePackageInstalls) List

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

func (*FakePackageInstalls) Patch

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

Patch applies the patch and returns the patched packageInstall.

func (*FakePackageInstalls) Update

func (c *FakePackageInstalls) Update(ctx context.Context, packageInstall *v1alpha1.PackageInstall, opts v1.UpdateOptions) (result *v1alpha1.PackageInstall, err error)

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

func (*FakePackageInstalls) UpdateStatus

func (c *FakePackageInstalls) UpdateStatus(ctx context.Context, packageInstall *v1alpha1.PackageInstall, opts v1.UpdateOptions) (*v1alpha1.PackageInstall, error)

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

func (*FakePackageInstalls) Watch

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

type FakePackageRepositories

type FakePackageRepositories struct {
	Fake *FakePackagingV1alpha1
	// contains filtered or unexported fields
}

FakePackageRepositories implements PackageRepositoryInterface

func (*FakePackageRepositories) Create

func (c *FakePackageRepositories) Create(ctx context.Context, packageRepository *v1alpha1.PackageRepository, opts v1.CreateOptions) (result *v1alpha1.PackageRepository, err error)

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

func (*FakePackageRepositories) Delete

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

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

func (*FakePackageRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageRepositories) Get

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

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

func (*FakePackageRepositories) List

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

func (*FakePackageRepositories) Patch

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

Patch applies the patch and returns the patched packageRepository.

func (*FakePackageRepositories) Update

func (c *FakePackageRepositories) Update(ctx context.Context, packageRepository *v1alpha1.PackageRepository, opts v1.UpdateOptions) (result *v1alpha1.PackageRepository, err error)

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

func (*FakePackageRepositories) UpdateStatus

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

func (*FakePackageRepositories) Watch

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

type FakePackagingV1alpha1

type FakePackagingV1alpha1 struct {
	*testing.Fake
}

func (*FakePackagingV1alpha1) PackageInstalls

func (c *FakePackagingV1alpha1) PackageInstalls(namespace string) v1alpha1.PackageInstallInterface

func (*FakePackagingV1alpha1) PackageRepositories

func (c *FakePackagingV1alpha1) PackageRepositories(namespace string) v1alpha1.PackageRepositoryInterface

func (*FakePackagingV1alpha1) RESTClient

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