fake

package
v1.16.13 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 1

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 FakeGatewayV1

type FakeGatewayV1 struct {
	*testing.Fake
}

func (*FakeGatewayV1) Gateways

func (c *FakeGatewayV1) Gateways(namespace string) v1.GatewayInterface

func (*FakeGatewayV1) MatchableHttpGateways added in v1.9.25

func (c *FakeGatewayV1) MatchableHttpGateways(namespace string) v1.MatchableHttpGatewayInterface

func (*FakeGatewayV1) MatchableTcpGateways added in v1.14.4

func (c *FakeGatewayV1) MatchableTcpGateways(namespace string) v1.MatchableTcpGatewayInterface

func (*FakeGatewayV1) RESTClient

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

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

func (*FakeGatewayV1) RouteOptions added in v1.8.0

func (c *FakeGatewayV1) RouteOptions(namespace string) v1.RouteOptionInterface

func (*FakeGatewayV1) RouteTables

func (c *FakeGatewayV1) RouteTables(namespace string) v1.RouteTableInterface

func (*FakeGatewayV1) VirtualHostOptions added in v1.8.0

func (c *FakeGatewayV1) VirtualHostOptions(namespace string) v1.VirtualHostOptionInterface

func (*FakeGatewayV1) VirtualServices

func (c *FakeGatewayV1) VirtualServices(namespace string) v1.VirtualServiceInterface

type FakeGateways

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

FakeGateways implements GatewayInterface

func (*FakeGateways) Create

func (c *FakeGateways) Create(ctx context.Context, gateway *gatewaysoloiov1.Gateway, opts v1.CreateOptions) (result *gatewaysoloiov1.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 *gatewaysoloiov1.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 *gatewaysoloiov1.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 *gatewaysoloiov1.Gateway, err error)

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

func (c *FakeGateways) Update(ctx context.Context, gateway *gatewaysoloiov1.Gateway, opts v1.UpdateOptions) (result *gatewaysoloiov1.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

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 FakeMatchableHttpGateways added in v1.9.25

type FakeMatchableHttpGateways struct {
	Fake *FakeGatewayV1
	// contains filtered or unexported fields
}

FakeMatchableHttpGateways implements MatchableHttpGatewayInterface

func (*FakeMatchableHttpGateways) Create added in v1.9.25

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

func (*FakeMatchableHttpGateways) Delete added in v1.9.25

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

func (*FakeMatchableHttpGateways) DeleteCollection added in v1.9.25

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

DeleteCollection deletes a collection of objects.

func (*FakeMatchableHttpGateways) Get added in v1.9.25

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

func (*FakeMatchableHttpGateways) List added in v1.9.25

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

func (*FakeMatchableHttpGateways) Patch added in v1.9.25

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

Patch applies the patch and returns the patched matchableHttpGateway.

func (*FakeMatchableHttpGateways) Update added in v1.9.25

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

func (*FakeMatchableHttpGateways) UpdateStatus added in v1.9.25

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

func (*FakeMatchableHttpGateways) Watch added in v1.9.25

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

type FakeMatchableTcpGateways added in v1.14.4

type FakeMatchableTcpGateways struct {
	Fake *FakeGatewayV1
	// contains filtered or unexported fields
}

FakeMatchableTcpGateways implements MatchableTcpGatewayInterface

func (*FakeMatchableTcpGateways) Create added in v1.14.4

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

func (*FakeMatchableTcpGateways) Delete added in v1.14.4

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

func (*FakeMatchableTcpGateways) DeleteCollection added in v1.14.4

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

DeleteCollection deletes a collection of objects.

func (*FakeMatchableTcpGateways) Get added in v1.14.4

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

func (*FakeMatchableTcpGateways) List added in v1.14.4

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

func (*FakeMatchableTcpGateways) Patch added in v1.14.4

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

Patch applies the patch and returns the patched matchableTcpGateway.

func (*FakeMatchableTcpGateways) Update added in v1.14.4

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

func (*FakeMatchableTcpGateways) UpdateStatus added in v1.14.4

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

func (*FakeMatchableTcpGateways) Watch added in v1.14.4

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

type FakeRouteOptions added in v1.8.0

type FakeRouteOptions struct {
	Fake *FakeGatewayV1
	// contains filtered or unexported fields
}

FakeRouteOptions implements RouteOptionInterface

func (*FakeRouteOptions) Create added in v1.8.0

func (c *FakeRouteOptions) Create(ctx context.Context, routeOption *gatewaysoloiov1.RouteOption, opts v1.CreateOptions) (result *gatewaysoloiov1.RouteOption, err error)

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

func (*FakeRouteOptions) Delete added in v1.8.0

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

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

func (*FakeRouteOptions) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeRouteOptions) Get added in v1.8.0

func (c *FakeRouteOptions) Get(ctx context.Context, name string, options v1.GetOptions) (result *gatewaysoloiov1.RouteOption, err error)

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

func (*FakeRouteOptions) List added in v1.8.0

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

func (*FakeRouteOptions) Patch added in v1.8.0

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

Patch applies the patch and returns the patched routeOption.

func (*FakeRouteOptions) Update added in v1.8.0

func (c *FakeRouteOptions) Update(ctx context.Context, routeOption *gatewaysoloiov1.RouteOption, opts v1.UpdateOptions) (result *gatewaysoloiov1.RouteOption, err error)

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

func (*FakeRouteOptions) UpdateStatus added in v1.8.0

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

func (*FakeRouteOptions) Watch added in v1.8.0

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

type FakeRouteTables

type FakeRouteTables struct {
	Fake *FakeGatewayV1
	// contains filtered or unexported fields
}

FakeRouteTables implements RouteTableInterface

func (*FakeRouteTables) Create

func (c *FakeRouteTables) Create(ctx context.Context, routeTable *gatewaysoloiov1.RouteTable, opts v1.CreateOptions) (result *gatewaysoloiov1.RouteTable, err error)

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

func (*FakeRouteTables) Delete

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

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

func (*FakeRouteTables) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeRouteTables) Get

func (c *FakeRouteTables) Get(ctx context.Context, name string, options v1.GetOptions) (result *gatewaysoloiov1.RouteTable, err error)

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

func (*FakeRouteTables) List

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

func (*FakeRouteTables) Patch

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

Patch applies the patch and returns the patched routeTable.

func (*FakeRouteTables) Update

func (c *FakeRouteTables) Update(ctx context.Context, routeTable *gatewaysoloiov1.RouteTable, opts v1.UpdateOptions) (result *gatewaysoloiov1.RouteTable, err error)

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

func (*FakeRouteTables) UpdateStatus

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

func (*FakeRouteTables) Watch

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

type FakeVirtualHostOptions added in v1.8.0

type FakeVirtualHostOptions struct {
	Fake *FakeGatewayV1
	// contains filtered or unexported fields
}

FakeVirtualHostOptions implements VirtualHostOptionInterface

func (*FakeVirtualHostOptions) Create added in v1.8.0

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

func (*FakeVirtualHostOptions) Delete added in v1.8.0

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

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

func (*FakeVirtualHostOptions) DeleteCollection added in v1.8.0

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualHostOptions) Get added in v1.8.0

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

func (*FakeVirtualHostOptions) List added in v1.8.0

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

func (*FakeVirtualHostOptions) Patch added in v1.8.0

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

Patch applies the patch and returns the patched virtualHostOption.

func (*FakeVirtualHostOptions) Update added in v1.8.0

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

func (*FakeVirtualHostOptions) UpdateStatus added in v1.8.0

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

func (*FakeVirtualHostOptions) Watch added in v1.8.0

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

type FakeVirtualServices

type FakeVirtualServices struct {
	Fake *FakeGatewayV1
	// contains filtered or unexported fields
}

FakeVirtualServices implements VirtualServiceInterface

func (*FakeVirtualServices) Create

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

func (*FakeVirtualServices) Delete

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

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

func (*FakeVirtualServices) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServices) Get

func (c *FakeVirtualServices) Get(ctx context.Context, name string, options v1.GetOptions) (result *gatewaysoloiov1.VirtualService, err error)

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

func (*FakeVirtualServices) List

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

func (*FakeVirtualServices) Patch

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

Patch applies the patch and returns the patched virtualService.

func (*FakeVirtualServices) Update

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

func (*FakeVirtualServices) UpdateStatus

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

func (*FakeVirtualServices) Watch

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

Jump to

Keyboard shortcuts

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