tunnelendpointcreator

package
v0.3.2-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package tunnelendpointcreator implements the logic to create TunnelEndpoints given the parameters negotiated through NetworkConfig resources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TunnelEndpointCreator

type TunnelEndpointCreator struct {
	client.Client
	Scheme    *runtime.Scheme
	IPManager liqonetIpam.Ipam
}

TunnelEndpointCreator manages the most of liqo networking.

func (*TunnelEndpointCreator) GetTunnelEndpoint

func (tec *TunnelEndpointCreator) GetTunnelEndpoint(ctx context.Context, destinationClusterID, namespace string) (
	*netv1alpha1.TunnelEndpoint,
	bool,
	error)

GetTunnelEndpoint retrieves the tunnelEndpoint resource related to a cluster.

func (*TunnelEndpointCreator) Reconcile

func (tec *TunnelEndpointCreator) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

Reconcile reconciles the state of NetworkConfig resources.

func (*TunnelEndpointCreator) SetupSignalHandlerForTunEndCreator

func (tec *TunnelEndpointCreator) SetupSignalHandlerForTunEndCreator() context.Context

SetupSignalHandlerForTunEndCreator registers for SIGTERM, SIGINT, SIGKILL. A stop channel is returned which is closed on one of these signals.

func (*TunnelEndpointCreator) SetupWithManager

func (tec *TunnelEndpointCreator) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager informs the manager that the tunnelEndpointCreator will deal with networkconfigs.

Jump to

Keyboard shortcuts

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