Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface { Run(context.Context) error AnnounceInfo() networkstate.WireguardState Update() }
type State ¶
type State struct {
// contains filtered or unexported fields
}
State holds the configured state of a Wesher Wireguard interface.
func (*State) AnnounceInfo ¶
func (s *State) AnnounceInfo() networkstate.WireguardState
func (*State) InterfaceDown ¶
InterfaceDown shuts down the associated network interface.
func (*State) InterfaceUp ¶
InterfaceUp creates the interface and routes to the overlay network
func (*State) UpdatePeers ¶
UpdatePeers updates the peers configuration
Click to show internal directories.
Click to hide internal directories.