Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
APIServerPassword string
APIServerPublicKey string
APIServerTunnelIP string
APIServerURL string
APIServerUsername string
APIServerEndpoint string
LogLevel string
PrivateKey string
PrometheusAddress string
DeviceIPv4 string `envconfig:"TUNNELIP"`
DeviceIPv6 string `envconfig:"TUNNELIPV6"`
WireGuardEnabled bool
WireGuardConfigPath string
WireGuardIPv4 *netip.Prefix `ignored:"true"`
WireGuardIPv6 *netip.Prefix `ignored:"true"`
}
func DefaultConfig ¶
func DefaultConfig() Config
func (Config) GetPassword ¶
func (Config) GetUsername ¶
func (Config) GetWireGuardConfigPath ¶
func (Config) ValidateWireGuard ¶
Click to show internal directories.
Click to hide internal directories.