output

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Format

type Format string
const (
	FormatDefault Format = ""
	FormatJSON    Format = "json"
	FormatYAML    Format = "yaml"
	FormatText    Format = "text"
	FormatRaw     Format = "raw"
)

type HumanRenderer

type HumanRenderer struct{}

func (HumanRenderer) Render

func (HumanRenderer) Render(w io.Writer, chain *tlsquery.ChainInfo, opts Options) error

type JSONRenderer

type JSONRenderer struct{}

func (JSONRenderer) Render

func (JSONRenderer) Render(w io.Writer, chain *tlsquery.ChainInfo, opts Options) error

type Options

type Options struct {
	Insecure bool
	Now      func() time.Time
}

func (Options) NowFunc

func (o Options) NowFunc() time.Time

type RawPEMRenderer

type RawPEMRenderer struct{}

func (RawPEMRenderer) Render

func (RawPEMRenderer) Render(w io.Writer, chain *tlsquery.ChainInfo, opts Options) error

type Renderer

type Renderer interface {
	Render(w io.Writer, chain *tlsquery.ChainInfo, opts Options) error
}

func New

func New(format Format) (Renderer, error)

type VerboseTextRenderer

type VerboseTextRenderer struct{}

func (VerboseTextRenderer) Render

func (VerboseTextRenderer) Render(w io.Writer, chain *tlsquery.ChainInfo, opts Options) error

type YAMLRenderer

type YAMLRenderer struct{}

func (YAMLRenderer) Render

func (YAMLRenderer) Render(w io.Writer, chain *tlsquery.ChainInfo, opts Options) error

Jump to

Keyboard shortcuts

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