stainlessviews

package
v0.1.0-alpha.55 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ViewBuild

func ViewBuild(data ViewData, currentView string) string

ViewBuild renders the build view from a given state onwards

func ViewBuildPipeline

func ViewBuildPipeline(build *stainless.Build, target stainless.Target, downloads map[stainless.Target]DownloadStatus) string

ViewBuildPipeline renders the build pipeline for a target

func ViewBuildRange

func ViewBuildRange(data ViewData, startView, endView string) string

ViewBuildRange renders the build view from startView to endView (inclusive) Returns empty string if views are not found

func ViewDiagnosticIcon

func ViewDiagnosticIcon(level stainless.BuildDiagnosticLevel) string

ViewDiagnosticIcon returns a colored icon for a diagnostic level

func ViewDiagnosticsPrint

func ViewDiagnosticsPrint(diagnostics []stainless.BuildDiagnostic, maxDiagnostics int) string

ViewDiagnosticsPrint renders build diagnostics with formatting

func ViewStepSymbol

func ViewStepSymbol(status, conclusion string) string

ViewStepSymbol returns a colored symbol for a build step status

Types

type DownloadStatus

type DownloadStatus struct {
	Status string
	Path   string
}

DownloadStatus represents the download status and path for a target

type ViewData

type ViewData struct {
	Build       *stainless.Build
	Diagnostics []stainless.BuildDiagnostic
	Duration    time.Duration
	Branch      string
	Downloads   map[stainless.Target]DownloadStatus
	HelpText    string
}

ViewData contains all the data needed to render the build view

type ViewPart

type ViewPart struct {
	Name string
	View func(ViewData, *strings.Builder)
}

ViewPart represents a single part of the build view

Jump to

Keyboard shortcuts

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