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 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 ¶
UnusedUDP4Port returns an unused UDP port.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.