Documentation ¶
Overview ¶
Package hsync synchronizes /etc/hosts with pairs of peer hostname and their respective IP addresses
Index ¶
- Variables
- type Host
- type Interface
- func (i *Interface) Close() error
- func (i *Interface) Hosts() []Host
- func (i *Interface) OnPeerAdded(p *daemon.Peer)
- func (i *Interface) OnPeerModified(_ *daemon.Peer, _ *wgtypes.Peer, m daemon.PeerModifier, _, _ []net.IPNet)
- func (i *Interface) OnPeerRemoved(_ *daemon.Peer)
- func (i *Interface) Start() error
- func (i *Interface) Sync() error
- func (i *Interface) Update(hosts []Host) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Get = daemon.RegisterFeature(New, 200) //nolint:gochecknoglobals
Functions ¶
This section is empty.
Types ¶
type Interface ¶
func (*Interface) OnPeerAdded ¶
func (*Interface) OnPeerModified ¶
func (*Interface) OnPeerRemoved ¶
Click to show internal directories.
Click to hide internal directories.