fake

package
v0.0.0-...-72f50ef Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 9 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 FakeExampleResources

type FakeExampleResources struct {
	Fake *FakeExamplecrdV1
	// contains filtered or unexported fields
}

FakeExampleResources implements ExampleResourceInterface

func (*FakeExampleResources) Create

func (c *FakeExampleResources) Create(ctx context.Context, exampleResource *v1.ExampleResource, opts metav1.CreateOptions) (result *v1.ExampleResource, err error)

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

func (*FakeExampleResources) Delete

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

func (*FakeExampleResources) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeExampleResources) Get

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

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

func (*FakeExampleResources) List

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

func (*FakeExampleResources) Patch

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

Patch applies the patch and returns the patched exampleResource.

func (*FakeExampleResources) Update

func (c *FakeExampleResources) Update(ctx context.Context, exampleResource *v1.ExampleResource, opts metav1.UpdateOptions) (result *v1.ExampleResource, err error)

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

func (*FakeExampleResources) Watch

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

type FakeExamplecrdV1

type FakeExamplecrdV1 struct {
	*testing.Fake
}

func (*FakeExamplecrdV1) ExampleResources

func (c *FakeExamplecrdV1) ExampleResources(namespace string) v1.ExampleResourceInterface

func (*FakeExamplecrdV1) RESTClient

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