debugging

package
v1.117.1-rc Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintJSON

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.

Types

type DebugCert

type DebugCert struct {
	Cert *x509.Certificate
}

DebugCert is a subset of the most relevant fields from an x509.Certificate for debugging.

func NewDebugCert

func NewDebugCert(cert x509.Certificate) DebugCert

NewDebugCert converts an *x509.Certificate into a DebugCert.

func (DebugCert) Cmp

func (c DebugCert) Cmp(c2 DebugCert, label string) error

Cmp is used to compare 2 DebugCerts against each other and print the diff.

func (DebugCert) JSON

func (c DebugCert) JSON() ([]byte, error)

JSON serializes the certificate to JSON.

Jump to

Keyboard shortcuts

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