Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrEndpointHostNotIP = errors.New("endpoint host is not an IP")
Functions ¶
func ReadFromFile ¶
ReadFromFile reads the content of the file as a string, and returns if the file was present or not with isSet.
Types ¶
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
func (*Source) KeyTransform ¶
type WireguardConfig ¶
type WireguardConfig struct { PrivateKey *string Addresses *string PublicKey *string EndpointIP *string EndpointPort *string }
func ParseWireguardConf ¶
func ParseWireguardConf(path string) (config WireguardConfig, err error)
Click to show internal directories.
Click to hide internal directories.