fake

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 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 FakeBGPPeerServices

type FakeBGPPeerServices struct {
	Fake *FakeBgppeerV1
}

FakeBGPPeerServices implements BGPPeerServiceInterface

func (*FakeBGPPeerServices) Apply

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

func (*FakeBGPPeerServices) ApplyStatus

func (c *FakeBGPPeerServices) ApplyStatus(ctx context.Context, bGPPeerService *bgppeerv1.BGPPeerServiceApplyConfiguration, opts metav1.ApplyOptions) (result *v1.BGPPeerService, 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 (*FakeBGPPeerServices) Create

func (c *FakeBGPPeerServices) Create(ctx context.Context, bGPPeerService *v1.BGPPeerService, opts metav1.CreateOptions) (result *v1.BGPPeerService, err error)

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

func (*FakeBGPPeerServices) Delete

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

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

func (*FakeBGPPeerServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeBGPPeerServices) Get

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

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

func (*FakeBGPPeerServices) List

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

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

func (*FakeBGPPeerServices) Patch

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

Patch applies the patch and returns the patched bGPPeerService.

func (*FakeBGPPeerServices) Update

func (c *FakeBGPPeerServices) Update(ctx context.Context, bGPPeerService *v1.BGPPeerService, opts metav1.UpdateOptions) (result *v1.BGPPeerService, err error)

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

func (*FakeBGPPeerServices) UpdateStatus

func (c *FakeBGPPeerServices) UpdateStatus(ctx context.Context, bGPPeerService *v1.BGPPeerService, opts metav1.UpdateOptions) (*v1.BGPPeerService, error)

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

func (*FakeBGPPeerServices) Watch

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

type FakeBgppeerV1

type FakeBgppeerV1 struct {
	*testing.Fake
}

func (*FakeBgppeerV1) BGPPeerServices

func (c *FakeBgppeerV1) BGPPeerServices() v1.BGPPeerServiceInterface

func (*FakeBgppeerV1) RESTClient

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