Documentation ¶
Index ¶
- type PeerProfile
- type Profile
- func (p *Profile) DoServerChallenge(profile *Profile) string
- func (p *Profile) FillProfileFromServer()
- func (p *Profile) GetPeerProfile(id string) (PeerProfile, error)
- func (p *Profile) GetServerChallenge(profile *Profile) (ServerChallenge, error)
- func (p *Profile) SetupWireguard(device *device.Device, WGInterface string)
- type ServerChallenge
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeerProfile ¶
type Profile ¶
type Profile struct { WireguardIP net.IP `json:"wireguard_ip"` WireguardNetmask int `json:"wireguard_netmask"` PublicKey string `json:"public_key"` PrivateKey string `json:"private_key"` AllowedPeers []string `json:"allowed_peers"` }
func (*Profile) DoServerChallenge ¶
func (*Profile) FillProfileFromServer ¶
func (p *Profile) FillProfileFromServer()
func (*Profile) GetPeerProfile ¶
func (p *Profile) GetPeerProfile(id string) (PeerProfile, error)
func (*Profile) GetServerChallenge ¶
func (p *Profile) GetServerChallenge(profile *Profile) (ServerChallenge, error)
Click to show internal directories.
Click to hide internal directories.