output

package
v0.0.0-...-3523800 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 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 JSONPrinter

type JSONPrinter struct {
	// contains filtered or unexported fields
}

JSONPrinter outputs JSON formatted data

func NewJSONPrinter

func NewJSONPrinter(pretty bool) *JSONPrinter

NewJSONPrinter creates a new JSON printer

func (*JSONPrinter) PrintAny

func (p *JSONPrinter) PrintAny(v interface{}) error

PrintAny outputs any value as JSON

func (*JSONPrinter) PrintApplyResult

func (p *JSONPrinter) PrintApplyResult(result *types.ApplyResult) error

PrintApplyResult outputs an apply result as JSON

func (*JSONPrinter) PrintDiagnosis

func (p *JSONPrinter) PrintDiagnosis(report *types.DiagnosisReport) error

PrintDiagnosis outputs a diagnosis report as JSON

func (*JSONPrinter) PrintPlan

func (p *JSONPrinter) PrintPlan(plan *types.Plan) error

PrintPlan outputs a plan as JSON

func (*JSONPrinter) SetOutput

func (p *JSONPrinter) SetOutput(out io.Writer)

SetOutput sets the output writer

type Printer

type Printer struct {
	// contains filtered or unexported fields
}

Printer handles output formatting

func NewPrinter

func NewPrinter(format string, verbose bool) *Printer

NewPrinter creates a new printer

func (*Printer) Print

func (p *Printer) Print(report *types.DiagnosisReport) error

Print outputs a diagnosis report (alias for PrintDiagnosis)

func (*Printer) PrintApplyResult

func (p *Printer) PrintApplyResult(result *types.ApplyResult) error

PrintApplyResult outputs the result of applying a plan

func (*Printer) PrintDiagnosis

func (p *Printer) PrintDiagnosis(report *types.DiagnosisReport) error

PrintDiagnosis outputs a diagnosis report

func (*Printer) PrintPlan

func (p *Printer) PrintPlan(report *types.DiagnosisReport, plan *types.Plan) error

PrintPlan outputs a remediation plan

func (*Printer) PrintWebhookReport

func (p *Printer) PrintWebhookReport(webhooks []types.WebhookInfo) error

PrintWebhookReport outputs a webhook health report

func (*Printer) SetOutput

func (p *Printer) SetOutput(out io.Writer)

SetOutput sets the output writer

Jump to

Keyboard shortcuts

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