fake

package
Version: v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 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 FakeDataV1alpha1

type FakeDataV1alpha1 struct {
	*testing.Fake
}

func (*FakeDataV1alpha1) PackageMetadatas

func (c *FakeDataV1alpha1) PackageMetadatas(namespace string) v1alpha1.PackageMetadataInterface

func (*FakeDataV1alpha1) Packages

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

func (*FakeDataV1alpha1) RESTClient

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

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

type FakePackageMetadatas

type FakePackageMetadatas struct {
	Fake *FakeDataV1alpha1
	// contains filtered or unexported fields
}

FakePackageMetadatas implements PackageMetadataInterface

func (*FakePackageMetadatas) Create

func (c *FakePackageMetadatas) Create(ctx context.Context, foo_PackageMetadata *v1alpha1.PackageMetadata, opts v1.CreateOptions) (result *v1alpha1.PackageMetadata, err error)

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

func (*FakePackageMetadatas) Delete

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

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

func (*FakePackageMetadatas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakePackageMetadatas) Get

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

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

func (*FakePackageMetadatas) List

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

func (*FakePackageMetadatas) Patch

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

Patch applies the patch and returns the patched foo_PackageMetadata.

func (*FakePackageMetadatas) Update

func (c *FakePackageMetadatas) Update(ctx context.Context, foo_PackageMetadata *v1alpha1.PackageMetadata, opts v1.UpdateOptions) (result *v1alpha1.PackageMetadata, err error)

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

func (*FakePackageMetadatas) Watch

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

type FakePackages

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

FakePackages implements PackageInterface

func (*FakePackages) Create

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

Create takes the representation of a foo_Package and creates it. Returns the server's representation of the foo_Package, 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 foo_Package 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 foo_Package, and returns the corresponding foo_Package 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 foo_Package.

func (*FakePackages) Update

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

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL