Documentation ¶
Index ¶
- func RandomSubnet(network net.IPNet, prefix int) net.IPNet
- type WGDevice
- func (m *WGDevice) AddPeer(peer types.Peer) error
- func (d *WGDevice) Ensure() error
- func (m *WGDevice) InitConfig() error
- func (m *WGDevice) Remove() error
- func (m *WGDevice) RemovePeer(publicKey wgtypes.Key) error
- func (m *WGDevice) ReplacePeers(peers []types.Peer) error
- func (d WGDevice) SetAddr(ipnet net.IPNet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type WGDevice ¶
type WGDevice struct {
// contains filtered or unexported fields
}
func (*WGDevice) InitConfig ¶
Click to show internal directories.
Click to hide internal directories.