tunnel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package tunnel specifies the interface that has to be implemented by the different vpn technologies.

Index

Constants

This section is empty.

Variables

View Source
var Drivers = map[string]DriverCreateFunc{}

Drivers static map of supported drivers.

Functions

func AddDriver

func AddDriver(name string, driverCreate DriverCreateFunc)

AddDriver adds a supported driver to the drivers map, prints a fatal error in the case of double registration.

Types

type Driver

type Driver interface {
	Init() error

	ConnectToEndpoint(tep *netv1alpha1.TunnelEndpoint) (*netv1alpha1.Connection, error)

	DisconnectFromEndpoint(tep *netv1alpha1.TunnelEndpoint) error

	GetLink() netlink.Link

	Close() error
}

Driver the interface needed to be implemented by new vpn drivers.

type DriverCreateFunc

type DriverCreateFunc func(k8sClientset k8s.Interface, namespace string) (Driver, error)

DriverCreateFunc function prototype to create a new driver.

Directories

Path Synopsis
Package wireguard implements the Wireguard tunnels to be used as vpn technology to interconnect clusters.
Package wireguard implements the Wireguard tunnels to be used as vpn technology to interconnect clusters.

Jump to

Keyboard shortcuts

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