facts

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2020 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllowedIPFactFull

func AllowedIPFactFull(aip net.IPNet, peer *wgtypes.Key, expires time.Time) *fact.Fact

AllowedIPFactFull wraps an IPNet in a Fact, with all fields filled

func EndpointFact

func EndpointFact(ep *net.UDPAddr) *fact.Fact

EndpointFact wraps a UDPAddr in a Fact, with just the Attribute and Value filled

func EndpointFactFull

func EndpointFactFull(ep *net.UDPAddr, peer *wgtypes.Key, expires time.Time) *fact.Fact

EndpointFactFull wraps a UDPAddr in a Fact, with all fields filled

func EndpointValue

func EndpointValue(ep *net.UDPAddr) *fact.IPPortValue

EndpointValue wraps a UDPAddr in an IPPortValue

Types

This section is empty.

Jump to

Keyboard shortcuts

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