daemonStorage

package
v0.12.16 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	ProjectId            string
	UserId               string
	VpnNetwork           net.IPNet
	GrpcApiAddress       string
	GrpcVpnAddress       string
	GrpcTargetVpnAddress string
	CaCertificateUrl     string
	Token                string
	PreferredPortMin     uint32
	PreferredPortMax     uint32

	ServerIp      net.IP
	DnsIp         net.IP
	ClientIp      net.IP
	Mtu           uint32
	DnsManagement LocalDnsManagement

	InterfaceName string

	Expiry time.Time
}

type Handler

type Handler struct {
	*storage.Handler[Data]
}

type LocalDnsManagement

type LocalDnsManagement string
const (
	LocalDnsManagementSystemdResolve LocalDnsManagement = "SYSTEMD_RESOLVE"
	LocalDnsManagementResolveConf    LocalDnsManagement = "RESOLVCONF"
	LocalDnsManagementFile           LocalDnsManagement = "FILE"
	LocalDnsManagementNetworkSetup   LocalDnsManagement = "NETWORKSETUP"
	LocalDnsManagementUnknown        LocalDnsManagement = "UNKNOWN"
	LocalDnsManagementWindows        LocalDnsManagement = "WINDOWS"
)

Jump to

Keyboard shortcuts

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