Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + var ErrContextUnsupported = errors.New("artifact does not support context operations") + var ErrFileTooLarge = errors.New("file size over specified limit") + var ErrGzipOffsetRead = errors.New("offset read on gzipped files unsupported") + var ErrInvalidLensName = errors.New("invalid lens name") + var ErrRequestSizeTooLarge = errors.New("request size over specified limit") + func LastNLines(a api.Artifact, n int64) ([]string, error) + func LastNLinesChunked(a api.Artifact, n, chunkSize int64) ([]string, error) + func RegisterLens(lens Lens) error + func ResourceDirForLens(baseDir, name string) string + func UnregisterLens(viewerName string) + type Lens interface + Body func(artifacts []api.Artifact, resourceDir string, data string, ...) string + Callback func(artifacts []api.Artifact, resourceDir string, data string, ...) string + Config func() LensConfig + Header func(artifacts []api.Artifact, resourceDir string, config json.RawMessage, ...) string + func GetLens(name string) (Lens, error) + type LensConfig struct + HideTitle bool + Name string + Priority uint + Title string