utils

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfSignedTLSCert added in v0.8.4

func GenerateSelfSignedTLSCert() (tls.Certificate, *x509.CertPool, error)

GenerateSelfSignedTLSCert generates a self-signed TLS certificate and a CertPool that trusts it.

func HostArch added in v0.4.1

func HostArch() string

HostArch returns the host architecture in GNU triplet style.

func IsNetAdmin added in v0.8.4

func IsNetAdmin() (bool, error)

func SaveTLSCertificatePEM added in v0.8.4

func SaveTLSCertificatePEM(cert tls.Certificate, dir string) error

SaveTLSCertificatePEM saves the tls.Certificate into PEM-encoded cert.pem and key.pem files in the given directory.

func UnusedUDP4Port

func UnusedUDP4Port() (uint16, error)

UnusedUDP4Port returns an unused UDP port.

Types

This section is empty.

Directories

Path Synopsis
Package docker implements Docker utils.
Package docker implements Docker utils.

Jump to

Keyboard shortcuts

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