Documentation
¶
Index ¶
- type JSONPrinter
- func (p *JSONPrinter) PrintAny(v interface{}) error
- func (p *JSONPrinter) PrintApplyResult(result *types.ApplyResult) error
- func (p *JSONPrinter) PrintDiagnosis(report *types.DiagnosisReport) error
- func (p *JSONPrinter) PrintPlan(plan *types.Plan) error
- func (p *JSONPrinter) SetOutput(out io.Writer)
- type Printer
- func (p *Printer) Print(report *types.DiagnosisReport) error
- func (p *Printer) PrintApplyResult(result *types.ApplyResult) error
- func (p *Printer) PrintDiagnosis(report *types.DiagnosisReport) error
- func (p *Printer) PrintPlan(report *types.DiagnosisReport, plan *types.Plan) error
- func (p *Printer) PrintWebhookReport(webhooks []types.WebhookInfo) error
- func (p *Printer) SetOutput(out io.Writer)
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 ¶
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) PrintWebhookReport ¶
func (p *Printer) PrintWebhookReport(webhooks []types.WebhookInfo) error
PrintWebhookReport outputs a webhook health report
Click to show internal directories.
Click to hide internal directories.