wgtest

package
v0.0.0-...-925a1e7 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package wgtest contains shared testing utilities for package wgctrl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustCIDR

func MustCIDR(s string) net.IPNet

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

func MustHexKey

func MustHexKey(s string) wgtypes.Key

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

func MustPresharedKey

func MustPresharedKey() wgtypes.Key

MustPresharedKey generates a preshared key or panics.

func MustPrivateKey

func MustPrivateKey() wgtypes.Key

MustPrivateKey generates a private key or panics.

func MustPublicKey

func MustPublicKey() wgtypes.Key

MustPublicKey generates a public key or panics.

func MustUDPAddr

func MustUDPAddr(s string) *net.UDPAddr

MustUDPAddr parses s as a UDP address or panics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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