utils

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConn

func GetConn(address string) (net.Conn, error)

GetConn returns a connection to the agent by dialing to a unix socket.

func ParsePEMCertificate added in v0.0.13

func ParsePEMCertificate(data []byte) (cert *x509.Certificate, err error)

ParsePEMCertificate parses one PEM certificate from data.

func ParsePEMCertificates added in v0.0.13

func ParsePEMCertificates(data []byte) (certs []*x509.Certificate, err error)

ParsePEMCertificates parses all the PEM certificates from data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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