wgctrl: golang.zx2c4.com/wireguard/wgctrl/internal/wgtest Index | Files

package wgtest

import "golang.zx2c4.com/wireguard/wgctrl/internal/wgtest"

Package wgtest contains shared testing utilities for package wgctrl.

Index

Package Files

doc.go wgtest.go

func MustCIDR Uses

func MustCIDR(s string) net.IPNet

MustCIDR converts CIDR string s into a net.IPNet or panics.

func MustHexKey Uses

func MustHexKey(s string) wgtypes.Key

MustHexKey decodes a hex string s as a key or panics.

func MustPresharedKey Uses

func MustPresharedKey() wgtypes.Key

MustPresharedKey generates a preshared key or panics.

func MustPrivateKey Uses

func MustPrivateKey() wgtypes.Key

MustPrivateKey generates a private key or panics.

func MustPublicKey Uses

func MustPublicKey() wgtypes.Key

MustPublicKey generates a public key or panics.

func MustUDPAddr Uses

func MustUDPAddr(s string) *net.UDPAddr

MustUDPAddr parses s as a UDP address or panics.

Package wgtest imports 4 packages (graph). Updated 2019-05-13. Refresh now. Tools for package owners.