fake

package
v1.96.1 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 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 FakeControllerDeployments

type FakeControllerDeployments struct {
	Fake *FakeCoreV1
}

FakeControllerDeployments implements ControllerDeploymentInterface

func (*FakeControllerDeployments) Create

func (c *FakeControllerDeployments) Create(ctx context.Context, controllerDeployment *v1.ControllerDeployment, opts metav1.CreateOptions) (result *v1.ControllerDeployment, err error)

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

func (*FakeControllerDeployments) Delete

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

func (*FakeControllerDeployments) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeControllerDeployments) Get

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

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

func (*FakeControllerDeployments) List

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

func (*FakeControllerDeployments) Patch

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

Patch applies the patch and returns the patched controllerDeployment.

func (*FakeControllerDeployments) Update

func (c *FakeControllerDeployments) Update(ctx context.Context, controllerDeployment *v1.ControllerDeployment, opts metav1.UpdateOptions) (result *v1.ControllerDeployment, err error)

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

func (*FakeControllerDeployments) Watch

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

type FakeCoreV1

type FakeCoreV1 struct {
	*testing.Fake
}

func (*FakeCoreV1) ControllerDeployments

func (c *FakeCoreV1) ControllerDeployments() v1.ControllerDeploymentInterface

func (*FakeCoreV1) RESTClient

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