Documentation ¶
Overview ¶
Package buildlog provides a build log viewer for Spyglass
Index ¶
- type Lens
- func (lens Lens) Body(artifacts []api.Artifact, resourceDir string, data string, ...) string
- func (lens Lens) Callback(artifacts []api.Artifact, resourceDir string, data string, ...) string
- func (lens Lens) Config() lenses.LensConfig
- func (lens Lens) Header(artifacts []api.Artifact, resourceDir string, config json.RawMessage, ...) string
- type LineGroup
- type LogArtifactView
- type LogLine
- type SubLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Lens ¶
type Lens struct{}
Lens implements the build lens.
func (Lens) Body ¶
func (lens Lens) Body(artifacts []api.Artifact, resourceDir string, data string, rawConfig json.RawMessage, spyglassConfig prowconfig.Spyglass) string
Body returns the <body> content for a build log (or multiple build logs)
func (Lens) Callback ¶
func (lens Lens) Callback(artifacts []api.Artifact, resourceDir string, data string, rawConfig json.RawMessage, spyglassConfig prowconfig.Spyglass) string
Callback is used to retrieve new log segments
func (Lens) Config ¶
func (lens Lens) Config() lenses.LensConfig
Config returns the lens's configuration.
type LineGroup ¶
type LineGroup struct { Skip bool Start, End int // closed, open ByteOffset, ByteLength int64 LogLines []LogLine ArtifactName *string }
LineGroup holds multiple lines that can be collapsed/expanded as a block
func (LineGroup) LinesSkipped ¶
LinesSkipped returns the number of lines skipped in a line group.
type LogArtifactView ¶
type LogArtifactView struct { ArtifactName string ArtifactLink string LineGroups []LineGroup ViewAll bool ShowRawLog bool CanSave bool CanAnalyze bool }
LogArtifactView holds a single log file's view
Click to show internal directories.
Click to hide internal directories.