output

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteJSON

func WriteJSON(w io.Writer, r Report) error

Types

type Report

type Report struct {
	Env      string          `json:"env"`
	Command  string          `json:"command"`
	Results  []ServiceResult `json:"results"`
	Summary  ReportSummary   `json:"summary"`
	AuditURL string          `json:"audit_url,omitempty"`
}

Report is the machine-readable output schema for verify/deploy.

type ReportSummary

type ReportSummary struct {
	Pass int `json:"pass"`
	Fail int `json:"fail"`
}

type ServiceResult

type ServiceResult struct {
	Service     string `json:"service"`
	Pacticipant string `json:"pacticipant"`
	Version     string `json:"version"`
	ImageRef    string `json:"image_ref,omitempty"`
	Verdict     string `json:"verdict"`
	Reason      string `json:"reason,omitempty"`
	BrokerURL   string `json:"broker_url,omitempty"`
}

type Writer

type Writer interface {
	Step(label, detail string)
	Ok(label, detail string)
	Fail(label, detail string)
	Warn(label, detail string)
	Summary(passed, failed int)
}

func NewText

func NewText(w io.Writer) Writer

Jump to

Keyboard shortcuts

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