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 FakeConfigV1alpha1

type FakeConfigV1alpha1 struct {
	*testing.Fake
}

func (*FakeConfigV1alpha1) PackageVariants

func (c *FakeConfigV1alpha1) PackageVariants(namespace string) v1alpha1.PackageVariantInterface

func (*FakeConfigV1alpha1) RESTClient

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

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

func (*FakeConfigV1alpha1) Repositories

func (c *FakeConfigV1alpha1) Repositories(namespace string) v1alpha1.RepositoryInterface

type FakePackageVariants

type FakePackageVariants struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakePackageVariants implements PackageVariantInterface

func (*FakePackageVariants) Create

func (c *FakePackageVariants) Create(ctx context.Context, packageVariant *v1alpha1.PackageVariant, opts v1.CreateOptions) (result *v1alpha1.PackageVariant, err error)

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

func (*FakePackageVariants) Delete

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

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

func (*FakePackageVariants) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageVariants) Get

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

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

func (*FakePackageVariants) List

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

func (*FakePackageVariants) Patch

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

Patch applies the patch and returns the patched packageVariant.

func (*FakePackageVariants) Update

func (c *FakePackageVariants) Update(ctx context.Context, packageVariant *v1alpha1.PackageVariant, opts v1.UpdateOptions) (result *v1alpha1.PackageVariant, err error)

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

func (*FakePackageVariants) UpdateStatus

func (c *FakePackageVariants) UpdateStatus(ctx context.Context, packageVariant *v1alpha1.PackageVariant, opts v1.UpdateOptions) (*v1alpha1.PackageVariant, error)

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

func (*FakePackageVariants) Watch

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

type FakeRepositories

type FakeRepositories struct {
	Fake *FakeConfigV1alpha1
	// contains filtered or unexported fields
}

FakeRepositories implements RepositoryInterface

func (*FakeRepositories) Create

func (c *FakeRepositories) Create(ctx context.Context, repository *v1alpha1.Repository, opts v1.CreateOptions) (result *v1alpha1.Repository, err error)

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

func (*FakeRepositories) Delete

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

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

func (*FakeRepositories) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRepositories) Get

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

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

func (*FakeRepositories) List

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

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

func (*FakeRepositories) Patch

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

Patch applies the patch and returns the patched repository.

func (*FakeRepositories) Update

func (c *FakeRepositories) Update(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (result *v1alpha1.Repository, err error)

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

func (*FakeRepositories) UpdateStatus

func (c *FakeRepositories) UpdateStatus(ctx context.Context, repository *v1alpha1.Repository, opts v1.UpdateOptions) (*v1alpha1.Repository, error)

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

func (*FakeRepositories) Watch

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

Jump to

Keyboard shortcuts

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