utils

package
v0.0.0-...-8a4938d Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssumeWireguardPeerIP

func AssumeWireguardPeerIP(wgInterfaceAddress string, allocated []string) (string, error)

func ExtractTagMap

func ExtractTagMap(tag string, st interface{}) (map[string]string, error)

func GenerateSshKeyPair

func GenerateSshKeyPair(sshPrivateKeyPath, sshPublicKeyPath string) error

func GenerateWireguardKeyPair

func GenerateWireguardKeyPair() (privateKey, publicKey string, err error)

func IsStrInSlice

func IsStrInSlice(arr []string, val string) bool

func MergeStrMaps

func MergeStrMaps(fromMap strmap, toMap strmap) strmap

func ReadBinaryFile

func ReadBinaryFile(filename string, v interface{}) error

func StrCompose

func StrCompose(template string, args map[string]string) string

func WriteBinaryFile

func WriteBinaryFile(filename string, v interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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