fake

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 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 FakeBGPPolicyDefinitionServices

type FakeBGPPolicyDefinitionServices struct {
	Fake *FakeBgppolicydefinitionV1
}

FakeBGPPolicyDefinitionServices implements BGPPolicyDefinitionServiceInterface

func (*FakeBGPPolicyDefinitionServices) Apply

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

func (*FakeBGPPolicyDefinitionServices) ApplyStatus

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

func (*FakeBGPPolicyDefinitionServices) Create

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

func (*FakeBGPPolicyDefinitionServices) Delete

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

func (*FakeBGPPolicyDefinitionServices) DeleteCollection

DeleteCollection deletes a collection of objects.

func (*FakeBGPPolicyDefinitionServices) Get

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

func (*FakeBGPPolicyDefinitionServices) List

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

func (*FakeBGPPolicyDefinitionServices) Patch

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

Patch applies the patch and returns the patched bGPPolicyDefinitionService.

func (*FakeBGPPolicyDefinitionServices) Update

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

func (*FakeBGPPolicyDefinitionServices) UpdateStatus

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

func (*FakeBGPPolicyDefinitionServices) Watch

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

type FakeBgppolicydefinitionV1

type FakeBgppolicydefinitionV1 struct {
	*testing.Fake
}

func (*FakeBgppolicydefinitionV1) BGPPolicyDefinitionServices

func (c *FakeBgppolicydefinitionV1) BGPPolicyDefinitionServices() v1.BGPPolicyDefinitionServiceInterface

func (*FakeBgppolicydefinitionV1) RESTClient

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