Documentation
¶
Index ¶
Constants ¶
View Source
const FILENAME = ".asteroid.yaml"
FILENAME define the config file name that needs to be present on the computer for the app to works
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { Name string `yaml:"name"` DNS string `yaml:"dns"` AllowedIPs string `yaml:"allowed_ips"` }
ClientConfig regroup the few fields necessarily to generate WG client config
type Config ¶
type Config struct { WG Wireguard `yaml:"wireguard"` ClientConfig ClientConfig `yaml:"client_config_file"` }
Config regroup the Wireguard and Client config
func ReadConfigFile ¶
ReadConfigFile retrieve the asteroid config file and put all fields into Config object
type Wireguard ¶
type Wireguard struct { SSHKeyName string `yaml:"ssh_key_name"` WireguardIP string `yaml:"ip"` SSHPort string `yaml:"ssh_port"` Username string `yaml:"username"` HostKey bool `yaml:"verification_host_key"` WGPort string `yaml:"wg_port"` }
Wireguard regroup all the field needed for WG to works properly
Click to show internal directories.
Click to hide internal directories.