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, updateStatus conncheck.UpdateFunc) (*netv1alpha1.Connection, error) DisconnectFromEndpoint(tep *netv1alpha1.TunnelEndpoint) error GetLink() netlink.Link Close() error prometheus.Collector }
Driver the interface needed to be implemented by new vpn drivers.
Directories ¶
Path | Synopsis |
---|---|
Package metrics provides a set of metrics for the VPN tunnel.
|
Package metrics provides a set of metrics for the VPN tunnel. |
Package resolver implements the resolver used to resolve hostnames to IP addresses.
|
Package resolver implements the resolver used to resolve hostnames to IP addresses. |
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. |
Click to show internal directories.
Click to hide internal directories.