public

package
v0.5.0-rc3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// PublicBridge public bridge name, exists only after a call to EnsurePublicSetup
	PublicBridge = types.PublicBridge
)

Variables

This section is empty.

Functions

func EnsurePublicSetup

func EnsurePublicSetup(nodeID pkg.Identifier, inf *types.PubIface) (*netlink.Bridge, error)

EnsurePublicSetup create the public setup, it's okay to have inf == nil

func IPs

func IPs() ([]net.IPNet, error)

IPs gets the public ips of the nodes

func NewWireguard

func NewWireguard(name string) (wg *wireguard.Wireguard, err error)

NewWireguard creates a new wireguard instance in public namespace if exits

Types

This section is empty.

Jump to

Keyboard shortcuts

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