Documentation ¶
Overview ¶
Package tunnel contains the implementation of the tunneling system used by the Liqo Gateway.
Index ¶
Constants ¶
View Source
const ( // ServerInterfaceIP is the IP address of the Wireguard interface in server mode. ServerInterfaceIP = "169.254.18.1/30" // ClientInterfaceIP is the IP address of the Wireguard interface in client mode. ClientInterfaceIP = "169.254.18.2/30" )
View Source
const (
// TunnelInterfaceName is the name of the tunnel interface used by the Gateway to reach the remote cluster.
TunnelInterfaceName = "liqo-tunnel"
)
Variables ¶
View Source
var ( // MetricsPeerReceivedBytes is the metric that counts the number of bytes received from a given peer. MetricsPeerReceivedBytes *prometheus.Desc // MetricsPeerTransmittedBytes is the metric that counts the number of bytes transmitted to a given peer. MetricsPeerTransmittedBytes *prometheus.Desc // MetricsPeerLatency is the metric that exposes the latency towards a given peer. MetricsPeerLatency *prometheus.Desc // MetricsPeerIsConnected is the metric that outputs the connection status. MetricsPeerIsConnected *prometheus.Desc // MetricsLabels is the labels that are used for the metrics. MetricsLabels []string )
Functions ¶
func AddAddress ¶
AddAddress adds an IP address to the Wireguard interface.
func GetInterfaceIP ¶
GetInterfaceIP returns the IP address of the Wireguard interface.
Types ¶
type PrometheusMetrics ¶
type PrometheusMetrics struct{}
PrometheusMetrics is a struct that implements the prometheus.Collector interface's Describe method and other utilities.
func (*PrometheusMetrics) Describe ¶
func (m *PrometheusMetrics) Describe(ch chan<- *prometheus.Desc)
Describe implements prometheus.Collector.
func (*PrometheusMetrics) MetricsErrorHandler ¶
func (m *PrometheusMetrics) MetricsErrorHandler(err error, ch chan<- prometheus.Metric)
MetricsErrorHandler is a function that handles metrics errors.
Click to show internal directories.
Click to hide internal directories.