Documentation ¶
Index ¶
- type Wireguard
- func (w *Wireguard) AddPeer(peer api.WireguardPeer)
- func (w *Wireguard) Close()
- func (w *Wireguard) CountPeers() (connectedKeyList api.ConnectedKeysMap, peerCount int)
- func (w *Wireguard) RemovePeer(peer api.WireguardPeer)
- func (w *Wireguard) ResetPeers()
- func (w *Wireguard) UpdatePeers(peers api.WireguardPeerList)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Wireguard ¶
type Wireguard struct {
// contains filtered or unexported fields
}
Wireguard is a utility for managing wireguard configuration
func (*Wireguard) AddPeer ¶
func (w *Wireguard) AddPeer(peer api.WireguardPeer)
AddPeer adds the given peer to the wireguard interfaces, without checking the existing configuration
func (*Wireguard) CountPeers ¶ added in v1.3.4
func (w *Wireguard) CountPeers() (connectedKeyList api.ConnectedKeysMap, peerCount int)
func (*Wireguard) RemovePeer ¶
func (w *Wireguard) RemovePeer(peer api.WireguardPeer)
RemovePeer removes the given peer from the wireguard interfaces, without checking the existing configuration
func (*Wireguard) ResetPeers ¶ added in v1.3.4
func (w *Wireguard) ResetPeers()
func (*Wireguard) UpdatePeers ¶
func (w *Wireguard) UpdatePeers(peers api.WireguardPeerList)
UpdatePeers updates the configuration of the wireguard interfaces to match the given list of peers
Click to show internal directories.
Click to hide internal directories.