peerfacts

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2020 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeviceFacts

func DeviceFacts(
	dev *wgtypes.Device,
	now time.Time,
	ttl time.Duration,
	config *config.Server,
	env networking.Environment,
) (
	ret []*fact.Fact,
	err error,
)

DeviceFacts returns facts about the local wireguard device and the peer that it represents, but not about other peers configured in the device.

func LocalFacts

func LocalFacts(
	peer *wgtypes.Peer,
	ttl time.Duration,
	trustLocalAIPs bool,
	trustLocalMembership bool,
	now time.Time,
) (ret []*fact.Fact, err error)

LocalFacts gets all the known facts about a local peer

Types

This section is empty.

Jump to

Keyboard shortcuts

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