render

package
v1.10.13 Latest Latest
Warning

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

Go to latest
Published: May 30, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSnapshotDeleteDryRunOutput

func FormatSnapshotDeleteDryRunOutput(snapshotID string, preview *snapshot.DeleteLineagePreview) string

func RenderSimulateStoreHuman

func RenderSimulateStoreHuman(w io.Writer, r *SimulateStoreReport) error

func RenderSimulateStoreJSON

func RenderSimulateStoreJSON(w io.Writer, r *SimulateStoreReport) error

func RenderSnapshotDiffDetailedHuman

func RenderSnapshotDiffDetailedHuman(
	w io.Writer,
	baseID, targetID string,
	entries []snapshot.SnapshotDiffEntry,
	summary snapshot.SnapshotDiffSummary,
	matchedEntryCount, totalEntryCount int,
	durationMS int64,
	hint string,
) error

func RenderSnapshotDiffSummaryHuman

func RenderSnapshotDiffSummaryHuman(w io.Writer, baseID, targetID string, summary snapshot.SnapshotDiffSummary) error

func RenderSnapshotListHuman

func RenderSnapshotListHuman(
	w io.Writer,
	items []snapshot.Snapshot,
	treeMode bool,
	treeLines []string,
	durationMS int64,
	hint string,
) error

func RenderSnapshotShowHuman

func RenderSnapshotShowHuman(
	w io.Writer,
	item snapshot.Snapshot,
	files []snapshot.SnapshotFileEntry,
	matchedFileCount int,
	totalSnapshotFileCount int64,
	durationMS int64,
	hint string,
) error

func SnapshotDeleteWarnings

func SnapshotDeleteWarnings(preview *snapshot.DeleteLineagePreview) []map[string]any

Types

type HumanRenderer

type HumanRenderer struct{}

func (HumanRenderer) RenderInspect

func (HumanRenderer) RenderInspect(w io.Writer, r *InspectResult) error

func (HumanRenderer) RenderSimulation

func (HumanRenderer) RenderSimulation(w io.Writer, r *SimulationResult) error

func (HumanRenderer) RenderStats

func (HumanRenderer) RenderStats(w io.Writer, r *StatsResult) error

type InspectResult

type InspectResult = observability.InspectResult

type JSONRenderer

type JSONRenderer struct{}

func (JSONRenderer) RenderInspect

func (JSONRenderer) RenderInspect(w io.Writer, r *InspectResult) error

func (JSONRenderer) RenderSimulation

func (JSONRenderer) RenderSimulation(w io.Writer, r *SimulationResult) error

func (JSONRenderer) RenderStats

func (JSONRenderer) RenderStats(w io.Writer, r *StatsResult) error

type Renderer

type Renderer interface {
	RenderStats(io.Writer, *StatsResult) error
	RenderInspect(io.Writer, *InspectResult) error
	RenderSimulation(io.Writer, *SimulationResult) error
}

type SimulateStoreReport

type SimulateStoreReport = observability.SimulateStoreReport

SimulateStoreReport mirrors observability's read-only simulate-store report.

type SimulationResult

type SimulationResult = observability.SimulationResult

func CloneSimulationResult

func CloneSimulationResult(input *observability.SimulationResult) *SimulationResult

type StatsResult

type StatsResult = observability.StatsResult

Jump to

Keyboard shortcuts

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