Documentation ¶
Index ¶
- Constants
- func DeleteName(name string) error
- func ListConfigNames() ([]string, error)
- func NameFromPath(path string) (string, error)
- func PathIsEncrypted(path string) bool
- func ServiceNameOfTunnel(tunnelName string) (string, error)
- func TunnelNameIsLess(a, b string) bool
- func TunnelNameIsValid(name string) bool
- type Bytes
- type Config
- func FromDriverConfiguration(interfaze *driver.Interface, existingConfig *Config) *Config
- func FromWgQuick(s, name string) (*Config, error)
- func FromWgQuickWithUnknownEncoding(s, name string) (*Config, error)
- func LoadFromName(name string) (*Config, error)
- func LoadFromPath(path string) (*Config, error)
- func (conf *Config) DeduplicateNetworkEntries()
- func (config *Config) Delete() error
- func (conf *Config) IntersectsWith(other *Config) bool
- func (config *Config) Path() (string, error)
- func (conf *Config) Redact()
- func (config *Config) Save(overwrite bool) error
- func (config *Config) ToDriverConfiguration() (*driver.Interface, uint32)
- func (conf *Config) ToWgQuick() string
- type Endpoint
- type HandshakeTime
- type Interface
- type Key
- type ParseError
- type Peer
- type StoreCallback
Constants ¶
View Source
const KeyLength = 32
Variables ¶
This section is empty.
Functions ¶
func DeleteName ¶
func ListConfigNames ¶
func NameFromPath ¶
func PathIsEncrypted ¶
func ServiceNameOfTunnel ¶ added in v0.5.1
func TunnelNameIsLess ¶
func TunnelNameIsValid ¶
Types ¶
type Config ¶
func FromDriverConfiguration ¶ added in v0.4.4
func FromWgQuick ¶
func LoadFromName ¶
func LoadFromPath ¶
func (*Config) DeduplicateNetworkEntries ¶ added in v0.1.0
func (conf *Config) DeduplicateNetworkEntries()
func (*Config) IntersectsWith ¶ added in v0.4.4
func (*Config) ToDriverConfiguration ¶ added in v0.4.4
type HandshakeTime ¶
func (HandshakeTime) IsEmpty ¶
func (t HandshakeTime) IsEmpty() bool
func (HandshakeTime) String ¶
func (t HandshakeTime) String() string
type ParseError ¶
type ParseError struct {
// contains filtered or unexported fields
}
func (*ParseError) Error ¶
func (e *ParseError) Error() string
type StoreCallback ¶
type StoreCallback struct {
// contains filtered or unexported fields
}
func RegisterStoreChangeCallback ¶
func RegisterStoreChangeCallback(cb func()) *StoreCallback
func (*StoreCallback) Unregister ¶
func (cb *StoreCallback) Unregister()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.