daemonStorage

package
v0.12.15 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 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
	CaCertificateUrl string
	Token            string

	InterfaceName string
	ServerIp      net.IP
	DnsIp         net.IP
	ClientIp      net.IP
	Mtu           uint32
	DnsManagement LocalDnsManagement
	DhcpEnabled   bool
	IPv6Enabled   bool

	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"
	LocalDnsManagementScutil         LocalDnsManagement = "SCUTIL"
	LocalDnsManagementUnknown        LocalDnsManagement = "UNKNOWN"
	LocalDnsManagementWindows        LocalDnsManagement = "WINDOWS"
)

Jump to

Keyboard shortcuts

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