draftview

package
v1.138.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package draftview renders what the portal's draft routes report about a source and a draft run of it: the gaps in a validation's lists, why a dry run failed in its author's terms, and the metrics and outputs it reports.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FailureMessage

func FailureMessage(refused *scriptrun.WriteRecord, cause string) string

FailureMessage separates the failures an author acts on differently: a script that is wrong, a script that is right but wanted to write, an upstream that was briefly unavailable, and a run that held too much (#1859).

func IncompleteNote

func IncompleteNote(report scriptrun.Report) string

IncompleteNote states that a validate report's lists are known to be short, which is the one thing an author reading them must not miss.

func Metrics

func Metrics(result *scriptrun.Result) script.RunMetrics

Metrics projects the engine's result into the metrics shape every other run surface reports, so a draft's cost is read in the same units as a platform run's.

func Outputs

func Outputs(outcome *scriptdraft.Outcome) []script.DryRunOutput

Outputs is the shape of what the run would have written. Every entry is a preview by construction, so the locators a persisted output carries are absent rather than empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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