fake

package
v1.37.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 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 FakeGatewayapiV1

type FakeGatewayapiV1 struct {
	*testing.Fake
}

func (*FakeGatewayapiV1) HTTPRoutes

func (c *FakeGatewayapiV1) HTTPRoutes(namespace string) v1.HTTPRouteInterface

func (*FakeGatewayapiV1) RESTClient

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

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

type FakeHTTPRoutes

type FakeHTTPRoutes struct {
	Fake *FakeGatewayapiV1
	// contains filtered or unexported fields
}

FakeHTTPRoutes implements HTTPRouteInterface

func (*FakeHTTPRoutes) Create

func (c *FakeHTTPRoutes) Create(ctx context.Context, hTTPRoute *v1.HTTPRoute, opts metav1.CreateOptions) (result *v1.HTTPRoute, err error)

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

func (*FakeHTTPRoutes) Delete

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

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

func (*FakeHTTPRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeHTTPRoutes) Get

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

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

func (*FakeHTTPRoutes) List

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

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

func (*FakeHTTPRoutes) Patch

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

Patch applies the patch and returns the patched hTTPRoute.

func (*FakeHTTPRoutes) Update

func (c *FakeHTTPRoutes) Update(ctx context.Context, hTTPRoute *v1.HTTPRoute, opts metav1.UpdateOptions) (result *v1.HTTPRoute, err error)

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

func (*FakeHTTPRoutes) UpdateStatus

func (c *FakeHTTPRoutes) UpdateStatus(ctx context.Context, hTTPRoute *v1.HTTPRoute, opts metav1.UpdateOptions) (*v1.HTTPRoute, error)

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

func (*FakeHTTPRoutes) Watch

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

Jump to

Keyboard shortcuts

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