vpn

package
v0.0.0-...-e749f68 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2023 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VPN

type VPN struct {
	Wireguard Wireguard `json:"wireguard"`
}

type Wireguard

type Wireguard struct {
	Interfaces map[string]WireguardInterface `json:"interfaces"`
	Peers      map[string]WireguardPeer      `json:"peers"`
}

type WireguardInterface

type WireguardInterface struct {
	PublicKey  string   `json:"public_key"`
	PrivateKey string   `json:"private_key"`
	ListenPort uint64   `json:"listen_port"`
	Peers      []string `json:"peers"`
	Comment    string   `json:"comment,omitempty"`
}

type WireguardPeer

type WireguardPeer struct {
	PublicKey           string   `json:"public_key"`
	PresharedKey        *string  `json:"preshared_key,omitempty"`
	AllowedIPs          []string `json:"allowed_ips"`
	Endpoint            *string  `json:"endpoint,omitempty"`
	PersistentKeepalive *uint64  `json:"persistent_keepalive,omitempty"`
	Comment             string   `json:"comment,omitempty"`
}

Jump to

Keyboard shortcuts

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