utils

package
v0.0.0-...-f5f9a29 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractWintun

func ExtractWintun() error

func IdxFromString

func IdxFromString(step int, str string) int

func ParseAllowedIPs

func ParseAllowedIPs(ctx string) ([]*net.IPNet, error)

func RandStr

func RandStr(n int) string

func ValidateDHCPRange

func ValidateDHCPRange(ipRange string) (net.IP, int)

func ValidateKey

func ValidateKey(key string) bool

Types

type CmdMgr

type CmdMgr struct {
	Path string
}

func NewCmdMgr

func NewCmdMgr(name string) (*CmdMgr, error)

func (*CmdMgr) Execute

func (c *CmdMgr) Execute(args ...string) (string, error)

Jump to

Keyboard shortcuts

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