package
Version:
v1.125.0-rc
Opens a new window with list of versions in this module.
Published: Mar 19, 2025
License: AGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func PrintJSON(data interface{}, label string)
PrintJSON uses a json marshaler to pretty-print arbitrary data for debugging
with special considerations for certain, specific types.
type DebugCert struct {
Cert *x509.Certificate
}
DebugCert is a subset of the most relevant fields from an x509.Certificate for debugging.
func NewDebugCert(cert x509.Certificate) DebugCert
NewDebugCert converts an *x509.Certificate into a DebugCert.
func (c DebugCert) Cmp(c2 DebugCert, label string) error
Cmp is used to compare 2 DebugCerts against each other and print the diff.
func (c DebugCert) JSON() ([]byte, error)
JSON serializes the certificate to JSON.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.