fake

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 10 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 FakeGatewayClasses

type FakeGatewayClasses struct {
	Fake *FakeNetworkingV1alpha1pre1
}

FakeGatewayClasses implements GatewayClassInterface

func (*FakeGatewayClasses) Create

func (c *FakeGatewayClasses) Create(ctx context.Context, gatewayClass *v1alpha1pre1.GatewayClass, opts v1.CreateOptions) (result *v1alpha1pre1.GatewayClass, err error)

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

func (*FakeGatewayClasses) Delete

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

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

func (*FakeGatewayClasses) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGatewayClasses) Get

func (c *FakeGatewayClasses) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1pre1.GatewayClass, err error)

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

func (*FakeGatewayClasses) List

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

func (*FakeGatewayClasses) Patch

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

Patch applies the patch and returns the patched gatewayClass.

func (*FakeGatewayClasses) Update

func (c *FakeGatewayClasses) Update(ctx context.Context, gatewayClass *v1alpha1pre1.GatewayClass, opts v1.UpdateOptions) (result *v1alpha1pre1.GatewayClass, err error)

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

func (*FakeGatewayClasses) UpdateStatus

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

func (*FakeGatewayClasses) Watch

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

type FakeGateways

type FakeGateways struct {
	Fake *FakeNetworkingV1alpha1pre1
	// contains filtered or unexported fields
}

FakeGateways implements GatewayInterface

func (*FakeGateways) Create

func (c *FakeGateways) Create(ctx context.Context, gateway *v1alpha1pre1.Gateway, opts v1.CreateOptions) (result *v1alpha1pre1.Gateway, err error)

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

func (*FakeGateways) Delete

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

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

func (*FakeGateways) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get

func (c *FakeGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1pre1.Gateway, err error)

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

func (*FakeGateways) List

func (c *FakeGateways) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1pre1.GatewayList, err error)

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

func (*FakeGateways) Patch

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

func (c *FakeGateways) Update(ctx context.Context, gateway *v1alpha1pre1.Gateway, opts v1.UpdateOptions) (result *v1alpha1pre1.Gateway, err error)

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

func (*FakeGateways) UpdateStatus

func (c *FakeGateways) UpdateStatus(ctx context.Context, gateway *v1alpha1pre1.Gateway, opts v1.UpdateOptions) (*v1alpha1pre1.Gateway, error)

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

func (*FakeGateways) Watch

func (c *FakeGateways) Watch(ctx context.Context, opts v1.ListOptions) (watch.Interface, error)

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

type FakeHTTPRoutes

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

FakeHTTPRoutes implements HTTPRouteInterface

func (*FakeHTTPRoutes) Create

func (c *FakeHTTPRoutes) Create(ctx context.Context, hTTPRoute *v1alpha1pre1.HTTPRoute, opts v1.CreateOptions) (result *v1alpha1pre1.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 v1.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 v1.DeleteOptions, listOpts v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeHTTPRoutes) Get

func (c *FakeHTTPRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1pre1.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 v1.ListOptions) (result *v1alpha1pre1.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 v1.PatchOptions, subresources ...string) (result *v1alpha1pre1.HTTPRoute, err error)

Patch applies the patch and returns the patched hTTPRoute.

func (*FakeHTTPRoutes) Update

func (c *FakeHTTPRoutes) Update(ctx context.Context, hTTPRoute *v1alpha1pre1.HTTPRoute, opts v1.UpdateOptions) (result *v1alpha1pre1.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 *v1alpha1pre1.HTTPRoute, opts v1.UpdateOptions) (*v1alpha1pre1.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.

type FakeNetworkingV1alpha1pre1

type FakeNetworkingV1alpha1pre1 struct {
	*testing.Fake
}

func (*FakeNetworkingV1alpha1pre1) GatewayClasses

func (*FakeNetworkingV1alpha1pre1) Gateways

func (*FakeNetworkingV1alpha1pre1) HTTPRoutes

func (*FakeNetworkingV1alpha1pre1) RESTClient

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

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

func (*FakeNetworkingV1alpha1pre1) TCPRoutes

type FakeTCPRoutes

type FakeTCPRoutes struct {
	Fake *FakeNetworkingV1alpha1pre1
	// contains filtered or unexported fields
}

FakeTCPRoutes implements TCPRouteInterface

func (*FakeTCPRoutes) Create

func (c *FakeTCPRoutes) Create(ctx context.Context, tCPRoute *v1alpha1pre1.TCPRoute, opts v1.CreateOptions) (result *v1alpha1pre1.TCPRoute, err error)

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

func (*FakeTCPRoutes) Delete

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

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

func (*FakeTCPRoutes) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeTCPRoutes) Get

func (c *FakeTCPRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1pre1.TCPRoute, err error)

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

func (*FakeTCPRoutes) List

func (c *FakeTCPRoutes) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1pre1.TCPRouteList, err error)

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

func (*FakeTCPRoutes) Patch

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

Patch applies the patch and returns the patched tCPRoute.

func (*FakeTCPRoutes) Update

func (c *FakeTCPRoutes) Update(ctx context.Context, tCPRoute *v1alpha1pre1.TCPRoute, opts v1.UpdateOptions) (result *v1alpha1pre1.TCPRoute, err error)

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

func (*FakeTCPRoutes) UpdateStatus

func (c *FakeTCPRoutes) UpdateStatus(ctx context.Context, tCPRoute *v1alpha1pre1.TCPRoute, opts v1.UpdateOptions) (*v1alpha1pre1.TCPRoute, error)

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

func (*FakeTCPRoutes) Watch

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

Jump to

Keyboard shortcuts

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