fake

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 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 FakeGatewayConnections

type FakeGatewayConnections struct {
	Fake *FakeVpnV1alpha1
	// contains filtered or unexported fields
}

FakeGatewayConnections implements GatewayConnectionInterface

func (*FakeGatewayConnections) Create

func (c *FakeGatewayConnections) Create(ctx context.Context, gatewayConnection *v1alpha1.GatewayConnection, opts v1.CreateOptions) (result *v1alpha1.GatewayConnection, err error)

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

func (*FakeGatewayConnections) Delete

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

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

func (*FakeGatewayConnections) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeGatewayConnections) Get

func (c *FakeGatewayConnections) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.GatewayConnection, err error)

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

func (*FakeGatewayConnections) List

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

func (*FakeGatewayConnections) Patch

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

Patch applies the patch and returns the patched gatewayConnection.

func (*FakeGatewayConnections) Update

func (c *FakeGatewayConnections) Update(ctx context.Context, gatewayConnection *v1alpha1.GatewayConnection, opts v1.UpdateOptions) (result *v1alpha1.GatewayConnection, err error)

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

func (*FakeGatewayConnections) UpdateStatus

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

func (*FakeGatewayConnections) Watch

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

type FakeGatewayNATRules added in v0.5.0

type FakeGatewayNATRules struct {
	Fake *FakeVpnV1alpha1
	// contains filtered or unexported fields
}

FakeGatewayNATRules implements GatewayNATRuleInterface

func (*FakeGatewayNATRules) Create added in v0.5.0

func (c *FakeGatewayNATRules) Create(ctx context.Context, gatewayNATRule *v1alpha1.GatewayNATRule, opts v1.CreateOptions) (result *v1alpha1.GatewayNATRule, err error)

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

func (*FakeGatewayNATRules) Delete added in v0.5.0

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

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

func (*FakeGatewayNATRules) DeleteCollection added in v0.5.0

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

DeleteCollection deletes a collection of objects.

func (*FakeGatewayNATRules) Get added in v0.5.0

func (c *FakeGatewayNATRules) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.GatewayNATRule, err error)

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

func (*FakeGatewayNATRules) List added in v0.5.0

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

func (*FakeGatewayNATRules) Patch added in v0.5.0

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

Patch applies the patch and returns the patched gatewayNATRule.

func (*FakeGatewayNATRules) Update added in v0.5.0

func (c *FakeGatewayNATRules) Update(ctx context.Context, gatewayNATRule *v1alpha1.GatewayNATRule, opts v1.UpdateOptions) (result *v1alpha1.GatewayNATRule, err error)

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

func (*FakeGatewayNATRules) UpdateStatus added in v0.5.0

func (c *FakeGatewayNATRules) UpdateStatus(ctx context.Context, gatewayNATRule *v1alpha1.GatewayNATRule, opts v1.UpdateOptions) (*v1alpha1.GatewayNATRule, error)

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

func (*FakeGatewayNATRules) Watch added in v0.5.0

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

type FakeGateways

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

FakeGateways implements GatewayInterface

func (*FakeGateways) Create

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

Patch applies the patch and returns the patched gateway.

func (*FakeGateways) Update

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

type FakeServerConfigurations struct {
	Fake *FakeVpnV1alpha1
	// contains filtered or unexported fields
}

FakeServerConfigurations implements ServerConfigurationInterface

func (*FakeServerConfigurations) Create

func (c *FakeServerConfigurations) Create(ctx context.Context, serverConfiguration *v1alpha1.ServerConfiguration, opts v1.CreateOptions) (result *v1alpha1.ServerConfiguration, err error)

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

func (*FakeServerConfigurations) Delete

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

func (*FakeServerConfigurations) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeServerConfigurations) Get

func (c *FakeServerConfigurations) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.ServerConfiguration, err error)

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

func (*FakeServerConfigurations) List

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

func (*FakeServerConfigurations) Patch

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

Patch applies the patch and returns the patched serverConfiguration.

func (*FakeServerConfigurations) Update

func (c *FakeServerConfigurations) Update(ctx context.Context, serverConfiguration *v1alpha1.ServerConfiguration, opts v1.UpdateOptions) (result *v1alpha1.ServerConfiguration, err error)

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

func (*FakeServerConfigurations) UpdateStatus

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

func (*FakeServerConfigurations) Watch

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

type FakeSites

type FakeSites struct {
	Fake *FakeVpnV1alpha1
	// contains filtered or unexported fields
}

FakeSites implements SiteInterface

func (*FakeSites) Create

func (c *FakeSites) Create(ctx context.Context, site *v1alpha1.Site, opts v1.CreateOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) Delete

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

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

func (*FakeSites) DeleteCollection

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

DeleteCollection deletes a collection of objects.

func (*FakeSites) Get

func (c *FakeSites) Get(ctx context.Context, name string, options v1.GetOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) List

func (c *FakeSites) List(ctx context.Context, opts v1.ListOptions) (result *v1alpha1.SiteList, err error)

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

func (*FakeSites) Patch

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

Patch applies the patch and returns the patched site.

func (*FakeSites) Update

func (c *FakeSites) Update(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (result *v1alpha1.Site, err error)

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

func (*FakeSites) UpdateStatus

func (c *FakeSites) UpdateStatus(ctx context.Context, site *v1alpha1.Site, opts v1.UpdateOptions) (*v1alpha1.Site, error)

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

func (*FakeSites) Watch

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

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

type FakeVpnV1alpha1

type FakeVpnV1alpha1 struct {
	*testing.Fake
}

func (*FakeVpnV1alpha1) GatewayConnections

func (c *FakeVpnV1alpha1) GatewayConnections(namespace string) v1alpha1.GatewayConnectionInterface

func (*FakeVpnV1alpha1) GatewayNATRules added in v0.5.0

func (c *FakeVpnV1alpha1) GatewayNATRules(namespace string) v1alpha1.GatewayNATRuleInterface

func (*FakeVpnV1alpha1) Gateways

func (c *FakeVpnV1alpha1) Gateways(namespace string) v1alpha1.GatewayInterface

func (*FakeVpnV1alpha1) RESTClient

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

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

func (*FakeVpnV1alpha1) ServerConfigurations

func (c *FakeVpnV1alpha1) ServerConfigurations(namespace string) v1alpha1.ServerConfigurationInterface

func (*FakeVpnV1alpha1) Sites

func (c *FakeVpnV1alpha1) Sites(namespace string) v1alpha1.SiteInterface

Jump to

Keyboard shortcuts

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