fake

package
v0.0.0-...-2f1c558 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: Apache-2.0 Imports: 12 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 FakeFooV1

type FakeFooV1 struct {
	*testing.Fake
}

func (*FakeFooV1) HelloTypes

func (c *FakeFooV1) HelloTypes(namespace string) v1.HelloTypeInterface

func (*FakeFooV1) RESTClient

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

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

type FakeHelloTypes

type FakeHelloTypes struct {
	Fake *FakeFooV1
	// contains filtered or unexported fields
}

FakeHelloTypes implements HelloTypeInterface

func (*FakeHelloTypes) Apply

func (c *FakeHelloTypes) Apply(ctx context.Context, helloType *foov1.HelloTypeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HelloType, err error)

Apply takes the given apply declarative configuration, applies it and returns the applied helloType.

func (*FakeHelloTypes) ApplyStatus

func (c *FakeHelloTypes) ApplyStatus(ctx context.Context, helloType *foov1.HelloTypeApplyConfiguration, opts metav1.ApplyOptions) (result *v1.HelloType, err error)

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

func (*FakeHelloTypes) Create

func (c *FakeHelloTypes) Create(ctx context.Context, helloType *v1.HelloType, opts metav1.CreateOptions) (result *v1.HelloType, err error)

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

func (*FakeHelloTypes) Delete

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

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

func (*FakeHelloTypes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHelloTypes) Get

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

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

func (*FakeHelloTypes) List

func (c *FakeHelloTypes) List(ctx context.Context, opts metav1.ListOptions) (result *v1.HelloTypeList, err error)

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

func (*FakeHelloTypes) Patch

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

Patch applies the patch and returns the patched helloType.

func (*FakeHelloTypes) Update

func (c *FakeHelloTypes) Update(ctx context.Context, helloType *v1.HelloType, opts metav1.UpdateOptions) (result *v1.HelloType, err error)

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

func (*FakeHelloTypes) UpdateStatus

func (c *FakeHelloTypes) UpdateStatus(ctx context.Context, helloType *v1.HelloType, opts metav1.UpdateOptions) (*v1.HelloType, error)

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

func (*FakeHelloTypes) Watch

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

Jump to

Keyboard shortcuts

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