fake

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2019 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 FakeGatewayV1

type FakeGatewayV1 struct {
	*testing.Fake
}

func (*FakeGatewayV1) Gateways

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

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) RouteTables

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

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(gateway *gatewaysoloiov1.Gateway) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get

func (c *FakeGateways) Get(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(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *gatewaysoloiov1.Gateway, err error)

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

func (c *FakeGateways) Update(gateway *gatewaysoloiov1.Gateway) (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

func (c *FakeGateways) UpdateStatus(gateway *gatewaysoloiov1.Gateway) (*gatewaysoloiov1.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(opts v1.ListOptions) (watch.Interface, error)

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

type FakeRouteTables

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

FakeRouteTables implements RouteTableInterface

func (*FakeRouteTables) Create

func (c *FakeRouteTables) Create(routeTable *gatewaysoloiov1.RouteTable) (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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeRouteTables) Get

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

func (c *FakeRouteTables) List(opts v1.ListOptions) (result *gatewaysoloiov1.RouteTableList, err error)

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

func (*FakeRouteTables) Patch

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

Patch applies the patch and returns the patched routeTable.

func (*FakeRouteTables) Update

func (c *FakeRouteTables) Update(routeTable *gatewaysoloiov1.RouteTable) (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

func (c *FakeRouteTables) UpdateStatus(routeTable *gatewaysoloiov1.RouteTable) (*gatewaysoloiov1.RouteTable, error)

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

func (c *FakeRouteTables) Watch(opts v1.ListOptions) (watch.Interface, error)

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

type FakeVirtualServices

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

FakeVirtualServices implements VirtualServiceInterface

func (*FakeVirtualServices) Create

func (c *FakeVirtualServices) Create(virtualService *gatewaysoloiov1.VirtualService) (result *gatewaysoloiov1.VirtualService, err error)

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(name string, options *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(options *v1.DeleteOptions, listOptions v1.ListOptions) error

DeleteCollection deletes a collection of objects.

func (*FakeVirtualServices) Get

func (c *FakeVirtualServices) Get(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(name string, pt types.PatchType, data []byte, subresources ...string) (result *gatewaysoloiov1.VirtualService, err error)

Patch applies the patch and returns the patched virtualService.

func (*FakeVirtualServices) Update

func (c *FakeVirtualServices) Update(virtualService *gatewaysoloiov1.VirtualService) (result *gatewaysoloiov1.VirtualService, err error)

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