view

package
v6.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Package view renders saved run reports without changing their data.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bundle

func Bundle(output io.Writer, history *report.History, id string) error

Bundle exports a readable offline HTML preview and every original capture artifact.

func BundleData

func BundleData(output io.Writer, data []byte, id, base string) error

BundleData creates portable report JSON, HTML, and complete recording streams.

func Export

func Export(output io.Writer, path string, data []byte, id string) error

Export writes HTML to output when path is empty, otherwise to an atomic file.

func Handler

func Handler(history *report.History) http.Handler

Handler serves a read-only history catalog, HTML reports, and original JSON.

func Render

func Render(output io.Writer, data []byte, id string) error

Render writes self-contained HTML with static charts and optional enhancement. Original JSON remains available without decoding and re-encoding workload-owned or unknown fields.

func RenderCapture

func RenderCapture(output io.Writer, data []byte, id, base string, query url.Values) error

RenderCapture includes bounded recording views while retaining complete artifact references.

func RenderComparison

func RenderComparison(output io.Writer, result *compare.Result, base string, query url.Values, served bool) error

RenderComparison uses the common calculation result for served and offline HTML.

func WriteCaptureFile

func WriteCaptureFile(path string, data []byte, id, base string) (err error)

WriteCaptureFile resolves sidecar streams against their report directory.

func WriteFile

func WriteFile(path string, data []byte, id string) error

WriteFile atomically publishes a standalone HTML report.

Types

This section is empty.

Jump to

Keyboard shortcuts

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