fake

package
v0.0.0-...-34d502c Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT 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 FakeCrdV1

type FakeCrdV1 struct {
	*testing.Fake
}

func (*FakeCrdV1) Customs

func (c *FakeCrdV1) Customs(namespace string) v1.CustomInterface

func (*FakeCrdV1) RESTClient

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

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

type FakeCustoms

type FakeCustoms struct {
	Fake *FakeCrdV1
	// contains filtered or unexported fields
}

FakeCustoms implements CustomInterface

func (*FakeCustoms) Apply

func (c *FakeCustoms) Apply(ctx context.Context, custom *crdcomv1.CustomApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Custom, err error)

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

func (*FakeCustoms) ApplyStatus

func (c *FakeCustoms) ApplyStatus(ctx context.Context, custom *crdcomv1.CustomApplyConfiguration, opts metav1.ApplyOptions) (result *v1.Custom, 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 (*FakeCustoms) Create

func (c *FakeCustoms) Create(ctx context.Context, custom *v1.Custom, opts metav1.CreateOptions) (result *v1.Custom, err error)

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

func (*FakeCustoms) Delete

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

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

func (*FakeCustoms) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeCustoms) Get

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

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

func (*FakeCustoms) List

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

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

func (*FakeCustoms) Patch

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

Patch applies the patch and returns the patched custom.

func (*FakeCustoms) Update

func (c *FakeCustoms) Update(ctx context.Context, custom *v1.Custom, opts metav1.UpdateOptions) (result *v1.Custom, err error)

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

func (*FakeCustoms) UpdateStatus

func (c *FakeCustoms) UpdateStatus(ctx context.Context, custom *v1.Custom, opts metav1.UpdateOptions) (*v1.Custom, error)

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

func (*FakeCustoms) Watch

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

Jump to

Keyboard shortcuts

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