Documentation ¶
Overview ¶
Package buildlog provides a build log viewer for Spyglass
Index ¶
- type BuildLogsView
- type Lens
- func (lens Lens) Body(artifacts []lenses.Artifact, resourceDir string, data string) string
- func (lens Lens) Callback(artifacts []lenses.Artifact, resourceDir string, data string) string
- func (lens Lens) Header(artifacts []lenses.Artifact, resourceDir string) string
- func (lens Lens) Name() string
- func (lens Lens) Priority() int
- func (lens Lens) Title() string
- type LineGroup
- type LineRequest
- type LogArtifactView
- type LogLine
- type SubLine
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildLogsView ¶
type BuildLogsView struct { LogViews []LogArtifactView RawGetAllRequests map[string]string RawGetMoreRequests map[string]string }
BuildLogsView holds each log file view
type Lens ¶
type Lens struct{}
Lens implements the build lens.
type LineGroup ¶
type LineGroup struct { Skip bool Start, End int // closed, open ByteOffset, ByteLength int LogLines []LogLine }
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 LineRequest ¶
type LineRequest struct { Artifact string `json:"artifact"` Offset int64 `json:"offset"` Length int64 `json:"length"` StartLine int `json:"startLine"` }
LineRequest represents a request for output lines from an artifact. If Offset is 0 and Length is -1, all lines will be fetched.
type LogArtifactView ¶
type LogArtifactView struct { ArtifactName string ArtifactLink string LineGroups []LineGroup ViewAll bool }
LogArtifactView holds a single log file's view
Click to show internal directories.
Click to hide internal directories.