wireguard

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2019 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureInterface

func ConfigureInterface(wgInterface Interface) ([]byte, error)

func ConfigurePeer

func ConfigurePeer(wgInterfaceName string, peer map[string]string) ([]byte, error)

func ExtractPubKey

func ExtractPubKey(privateKey []byte) ([]byte, error)

func Genkey

func Genkey() ([]byte, error)

func GetPeers

func GetPeers(wgInterfaceName string) (map[string]map[string]string, error)

func IsWgInterfaceWellConfigured

func IsWgInterfaceWellConfigured(wgInterface Interface) bool

func RemovePeer

func RemovePeer(wgInterfaceName string, pubKey string) ([]byte, error)

Types

type Interface

type Interface struct {
	Name       string
	Address    string
	ListenPort int
	PrivateKey string
	PostUp     string
}

Jump to

Keyboard shortcuts

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