Documentation ¶
Overview ¶
mole is tunnel maker package. Mole is a craftsman and makes full featured wireguard tunnels. Actually all tunnel and peer configuration should go through this package. wireguard, router and netfilter packages are apprentices to help mole.
Index ¶
- type Mole
- func (m *Mole) AddPeer(pi *swireguard.PeerInfo, netpath *common.SdnNetworkPath) error
- func (m *Mole) Apply()
- func (m *Mole) Close() error
- func (m *Mole) CreateChain() error
- func (m *Mole) CreateInterface(ii *swireguard.InterfaceInfo) error
- func (m *Mole) Flush()
- func (m *Mole) RemoveInterface(ii *swireguard.InterfaceInfo) error
- func (m *Mole) RemovePeer(pi *swireguard.PeerInfo, netpath *common.SdnNetworkPath) error
- func (m *Mole) Router() *router.Router
- func (m *Mole) Wireguard() *swireguard.Wireguard
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mole ¶
func (*Mole) AddPeer ¶
func (m *Mole) AddPeer(pi *swireguard.PeerInfo, netpath *common.SdnNetworkPath) error
func (*Mole) Apply ¶
func (m *Mole) Apply()
Apply pending results (sync cache to reality) Send some messages to controller (Writter), if needed
func (*Mole) CreateChain ¶
func (*Mole) CreateInterface ¶
func (m *Mole) CreateInterface(ii *swireguard.InterfaceInfo) error
func (*Mole) RemoveInterface ¶
func (m *Mole) RemoveInterface(ii *swireguard.InterfaceInfo) error
func (*Mole) RemovePeer ¶
func (m *Mole) RemovePeer(pi *swireguard.PeerInfo, netpath *common.SdnNetworkPath) error
func (*Mole) Wireguard ¶
func (m *Mole) Wireguard() *swireguard.Wireguard
Some compatibility layer to directly access apprentice
Click to show internal directories.
Click to hide internal directories.