rtsync

package
v0.4.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package rtsync synchronizes the kernel routing table with the AllowedIPs of each WireGuard peer

Index

Constants

This section is empty.

Variables

View Source
var Get = daemon.RegisterFeature(New, 30) //nolint:gochecknoglobals

Functions

This section is empty.

Types

type Interface

type Interface struct {
	*daemon.Interface
	// contains filtered or unexported fields
}

func New

func New(i *daemon.Interface) (*Interface, error)

func (*Interface) Close

func (i *Interface) Close() error

func (*Interface) OnPeerAdded

func (i *Interface) OnPeerAdded(p *daemon.Peer)

func (*Interface) OnPeerModified

func (i *Interface) OnPeerModified(p *daemon.Peer, _ *wgtypes.Peer, _ daemon.PeerModifier, ipsAdded, ipsRemoved []net.IPNet)

func (*Interface) OnPeerRemoved

func (i *Interface) OnPeerRemoved(p *daemon.Peer)

func (*Interface) Start

func (i *Interface) Start() error

func (*Interface) Sync

func (i *Interface) Sync() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL