fake

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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 FakeInternalPackageMetadatas

type FakeInternalPackageMetadatas struct {
	Fake *FakeInternalV1alpha1
	// contains filtered or unexported fields
}

FakeInternalPackageMetadatas implements InternalPackageMetadataInterface

func (*FakeInternalPackageMetadatas) Create

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

func (*FakeInternalPackageMetadatas) Delete

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

func (*FakeInternalPackageMetadatas) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInternalPackageMetadatas) Get

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

func (*FakeInternalPackageMetadatas) List

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

func (*FakeInternalPackageMetadatas) Patch

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

Patch applies the patch and returns the patched internalPackageMetadata.

func (*FakeInternalPackageMetadatas) Update

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

func (*FakeInternalPackageMetadatas) Watch

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

type FakeInternalPackages

type FakeInternalPackages struct {
	Fake *FakeInternalV1alpha1
	// contains filtered or unexported fields
}

FakeInternalPackages implements InternalPackageInterface

func (*FakeInternalPackages) Create

func (c *FakeInternalPackages) Create(ctx context.Context, internalPackage *v1alpha1.InternalPackage, opts v1.CreateOptions) (result *v1alpha1.InternalPackage, err error)

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

func (*FakeInternalPackages) Delete

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

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

func (*FakeInternalPackages) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeInternalPackages) Get

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

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

func (*FakeInternalPackages) List

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

func (*FakeInternalPackages) Patch

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

Patch applies the patch and returns the patched internalPackage.

func (*FakeInternalPackages) Update

func (c *FakeInternalPackages) Update(ctx context.Context, internalPackage *v1alpha1.InternalPackage, opts v1.UpdateOptions) (result *v1alpha1.InternalPackage, err error)

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

func (*FakeInternalPackages) Watch

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

type FakeInternalV1alpha1

type FakeInternalV1alpha1 struct {
	*testing.Fake
}

func (*FakeInternalV1alpha1) InternalPackageMetadatas

func (c *FakeInternalV1alpha1) InternalPackageMetadatas(namespace string) v1alpha1.InternalPackageMetadataInterface

func (*FakeInternalV1alpha1) InternalPackages

func (c *FakeInternalV1alpha1) InternalPackages(namespace string) v1alpha1.InternalPackageInterface

func (*FakeInternalV1alpha1) RESTClient

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