fake

package
v0.17.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 FakeClusterGlobalEgressIPs added in v0.10.1

type FakeClusterGlobalEgressIPs struct {
	Fake *FakeSubmarinerV1
	// contains filtered or unexported fields
}

FakeClusterGlobalEgressIPs implements ClusterGlobalEgressIPInterface

func (*FakeClusterGlobalEgressIPs) Create added in v0.10.1

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

func (*FakeClusterGlobalEgressIPs) Delete added in v0.10.1

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

func (*FakeClusterGlobalEgressIPs) DeleteCollection added in v0.10.1

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

DeleteCollection deletes a collection of objects.

func (*FakeClusterGlobalEgressIPs) Get added in v0.10.1

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

func (*FakeClusterGlobalEgressIPs) List added in v0.10.1

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

func (*FakeClusterGlobalEgressIPs) Patch added in v0.10.1

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

Patch applies the patch and returns the patched clusterGlobalEgressIP.

func (*FakeClusterGlobalEgressIPs) Update added in v0.10.1

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

func (*FakeClusterGlobalEgressIPs) UpdateStatus added in v0.10.1

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

func (*FakeClusterGlobalEgressIPs) Watch added in v0.10.1

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

type FakeClusters

type FakeClusters struct {
	Fake *FakeSubmarinerV1
	// contains filtered or unexported fields
}

FakeClusters implements ClusterInterface

func (*FakeClusters) Create

func (c *FakeClusters) Create(ctx context.Context, cluster *submarineriov1.Cluster, opts v1.CreateOptions) (result *submarineriov1.Cluster, err error)

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

func (*FakeClusters) Delete

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

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

func (*FakeClusters) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeClusters) Get

func (c *FakeClusters) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Cluster, err error)

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

func (*FakeClusters) List

func (c *FakeClusters) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.ClusterList, err error)

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

func (*FakeClusters) Patch

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

Patch applies the patch and returns the patched cluster.

func (*FakeClusters) Update

func (c *FakeClusters) Update(ctx context.Context, cluster *submarineriov1.Cluster, opts v1.UpdateOptions) (result *submarineriov1.Cluster, err error)

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

func (*FakeClusters) Watch

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

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

type FakeEndpoints

type FakeEndpoints struct {
	Fake *FakeSubmarinerV1
	// contains filtered or unexported fields
}

FakeEndpoints implements EndpointInterface

func (*FakeEndpoints) Create

func (c *FakeEndpoints) Create(ctx context.Context, endpoint *submarineriov1.Endpoint, opts v1.CreateOptions) (result *submarineriov1.Endpoint, err error)

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

func (*FakeEndpoints) Delete

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

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

func (*FakeEndpoints) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeEndpoints) Get

func (c *FakeEndpoints) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.Endpoint, err error)

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

func (*FakeEndpoints) List

func (c *FakeEndpoints) List(ctx context.Context, opts v1.ListOptions) (result *submarineriov1.EndpointList, err error)

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

func (*FakeEndpoints) Patch

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

Patch applies the patch and returns the patched endpoint.

func (*FakeEndpoints) Update

func (c *FakeEndpoints) Update(ctx context.Context, endpoint *submarineriov1.Endpoint, opts v1.UpdateOptions) (result *submarineriov1.Endpoint, err error)

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

func (*FakeEndpoints) Watch

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

type FakeGatewayRoutes added in v0.16.0

type FakeGatewayRoutes struct {
	Fake *FakeSubmarinerV1
	// contains filtered or unexported fields
}

FakeGatewayRoutes implements GatewayRouteInterface

func (*FakeGatewayRoutes) Create added in v0.16.0

func (c *FakeGatewayRoutes) Create(ctx context.Context, gatewayRoute *submarineriov1.GatewayRoute, opts v1.CreateOptions) (result *submarineriov1.GatewayRoute, err error)

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

func (*FakeGatewayRoutes) Delete added in v0.16.0

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

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

func (*FakeGatewayRoutes) DeleteCollection added in v0.16.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGatewayRoutes) Get added in v0.16.0

func (c *FakeGatewayRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.GatewayRoute, err error)

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

func (*FakeGatewayRoutes) List added in v0.16.0

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

func (*FakeGatewayRoutes) Patch added in v0.16.0

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

Patch applies the patch and returns the patched gatewayRoute.

func (*FakeGatewayRoutes) Update added in v0.16.0

func (c *FakeGatewayRoutes) Update(ctx context.Context, gatewayRoute *submarineriov1.GatewayRoute, opts v1.UpdateOptions) (result *submarineriov1.GatewayRoute, err error)

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

func (*FakeGatewayRoutes) Watch added in v0.16.0

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

type FakeGateways added in v0.3.0

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

FakeGateways implements GatewayInterface

func (*FakeGateways) Create added in v0.3.0

func (c *FakeGateways) Create(ctx context.Context, gateway *submarineriov1.Gateway, opts v1.CreateOptions) (result *submarineriov1.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 added in v0.3.0

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 added in v0.3.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGateways) Get added in v0.3.0

func (c *FakeGateways) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.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 added in v0.3.0

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

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

func (*FakeGateways) Patch added in v0.3.0

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update added in v0.3.0

func (c *FakeGateways) Update(ctx context.Context, gateway *submarineriov1.Gateway, opts v1.UpdateOptions) (result *submarineriov1.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) Watch added in v0.3.0

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

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

type FakeGlobalEgressIPs added in v0.10.1

type FakeGlobalEgressIPs struct {
	Fake *FakeSubmarinerV1
	// contains filtered or unexported fields
}

FakeGlobalEgressIPs implements GlobalEgressIPInterface

func (*FakeGlobalEgressIPs) Create added in v0.10.1

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

func (*FakeGlobalEgressIPs) Delete added in v0.10.1

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

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

func (*FakeGlobalEgressIPs) DeleteCollection added in v0.10.1

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalEgressIPs) Get added in v0.10.1

func (c *FakeGlobalEgressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.GlobalEgressIP, err error)

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

func (*FakeGlobalEgressIPs) List added in v0.10.1

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

func (*FakeGlobalEgressIPs) Patch added in v0.10.1

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

Patch applies the patch and returns the patched globalEgressIP.

func (*FakeGlobalEgressIPs) Update added in v0.10.1

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

func (*FakeGlobalEgressIPs) UpdateStatus added in v0.10.1

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

func (*FakeGlobalEgressIPs) Watch added in v0.10.1

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

type FakeGlobalIngressIPs added in v0.10.1

type FakeGlobalIngressIPs struct {
	Fake *FakeSubmarinerV1
	// contains filtered or unexported fields
}

FakeGlobalIngressIPs implements GlobalIngressIPInterface

func (*FakeGlobalIngressIPs) Create added in v0.10.1

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

func (*FakeGlobalIngressIPs) Delete added in v0.10.1

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

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

func (*FakeGlobalIngressIPs) DeleteCollection added in v0.10.1

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

DeleteCollection deletes a collection of objects.

func (*FakeGlobalIngressIPs) Get added in v0.10.1

func (c *FakeGlobalIngressIPs) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.GlobalIngressIP, err error)

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

func (*FakeGlobalIngressIPs) List added in v0.10.1

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

func (*FakeGlobalIngressIPs) Patch added in v0.10.1

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

Patch applies the patch and returns the patched globalIngressIP.

func (*FakeGlobalIngressIPs) Update added in v0.10.1

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

func (*FakeGlobalIngressIPs) UpdateStatus added in v0.10.1

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

func (*FakeGlobalIngressIPs) Watch added in v0.10.1

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

type FakeNonGatewayRoutes added in v0.16.0

type FakeNonGatewayRoutes struct {
	Fake *FakeSubmarinerV1
	// contains filtered or unexported fields
}

FakeNonGatewayRoutes implements NonGatewayRouteInterface

func (*FakeNonGatewayRoutes) Create added in v0.16.0

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

func (*FakeNonGatewayRoutes) Delete added in v0.16.0

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

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

func (*FakeNonGatewayRoutes) DeleteCollection added in v0.16.0

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

DeleteCollection deletes a collection of objects.

func (*FakeNonGatewayRoutes) Get added in v0.16.0

func (c *FakeNonGatewayRoutes) Get(ctx context.Context, name string, options v1.GetOptions) (result *submarineriov1.NonGatewayRoute, err error)

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

func (*FakeNonGatewayRoutes) List added in v0.16.0

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

func (*FakeNonGatewayRoutes) Patch added in v0.16.0

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

Patch applies the patch and returns the patched nonGatewayRoute.

func (*FakeNonGatewayRoutes) Update added in v0.16.0

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

func (*FakeNonGatewayRoutes) Watch added in v0.16.0

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

type FakeSubmarinerV1

type FakeSubmarinerV1 struct {
	*testing.Fake
}

func (*FakeSubmarinerV1) ClusterGlobalEgressIPs added in v0.10.1

func (c *FakeSubmarinerV1) ClusterGlobalEgressIPs(namespace string) v1.ClusterGlobalEgressIPInterface

func (*FakeSubmarinerV1) Clusters

func (c *FakeSubmarinerV1) Clusters(namespace string) v1.ClusterInterface

func (*FakeSubmarinerV1) Endpoints

func (c *FakeSubmarinerV1) Endpoints(namespace string) v1.EndpointInterface

func (*FakeSubmarinerV1) GatewayRoutes added in v0.16.0

func (c *FakeSubmarinerV1) GatewayRoutes(namespace string) v1.GatewayRouteInterface

func (*FakeSubmarinerV1) Gateways added in v0.3.0

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

func (*FakeSubmarinerV1) GlobalEgressIPs added in v0.10.1

func (c *FakeSubmarinerV1) GlobalEgressIPs(namespace string) v1.GlobalEgressIPInterface

func (*FakeSubmarinerV1) GlobalIngressIPs added in v0.10.1

func (c *FakeSubmarinerV1) GlobalIngressIPs(namespace string) v1.GlobalIngressIPInterface

func (*FakeSubmarinerV1) NonGatewayRoutes added in v0.16.0

func (c *FakeSubmarinerV1) NonGatewayRoutes(namespace string) v1.NonGatewayRouteInterface

func (*FakeSubmarinerV1) RESTClient

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