utils

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInterfaceIP

func GetInterfaceIP(name string, ipv4 bool) (string, error)

func GetInterfaceIPs

func GetInterfaceIPs(name string) (ipv4s []string, ipv6s []string, err error)

func GetInterfaceMAC added in v0.0.10

func GetInterfaceMAC(name string) (string, error)

func TagsMatch added in v0.0.10

func TagsMatch(a, b []string) bool

func UnwrapString added in v0.0.10

func UnwrapString(str *string) string

func UnwrapUint32 added in v0.0.10

func UnwrapUint32(n *uint32) uint32

func WithTimeout added in v0.0.6

func WithTimeout(
	ctx context.Context,
	timeout time.Duration,
	do func(context.Context) error,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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