Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2023 Changes in this version + var ErrCannotParseSource = errors.New("could not create job source from provided source") + type ExtraLink struct + Description string + Name string + URL string + type LensConfig interface + Config func() lenses.LensConfig + type LensRequest struct + Artifacts []string + Index int + Source string + type PodLogArtifact struct + func NewPodLogArtifact(jobName string, buildID string, artifactName string, container string, ...) (*PodLogArtifact, error) + func (a *PodLogArtifact) CanonicalLink() string + func (a *PodLogArtifact) JobPath() string + func (a *PodLogArtifact) Metadata() (map[string]string, error) + func (a *PodLogArtifact) ReadAll() ([]byte, error) + func (a *PodLogArtifact) ReadAt(p []byte, off int64) (n int, err error) + func (a *PodLogArtifact) ReadAtMost(n int64) ([]byte, error) + func (a *PodLogArtifact) ReadTail(n int64) ([]byte, error) + func (a *PodLogArtifact) Size() (int64, error) + func (a *PodLogArtifact) UpdateMetadata(meta map[string]string) error + type PodLogArtifactFetcher struct + func NewPodLogArtifactFetcher(ja jobAgent) *PodLogArtifactFetcher + func (af *PodLogArtifactFetcher) Artifact(_ context.Context, key, artifactName string, sizeLimit int64) (api.Artifact, error) + type Spyglass struct + JobAgent *jobs.JobAgent + func New(ctx context.Context, ja *jobs.JobAgent, cfg config.Getter, opener pkgio.Opener, ...) *Spyglass + func (s *Spyglass) FetchArtifacts(ctx context.Context, src string, podName string, sizeLimit int64, ...) ([]api.Artifact, error) + func (s *Spyglass) ListArtifacts(ctx context.Context, src string) ([]string, error) + func (sg *Spyglass) ExtraLinks(ctx context.Context, src string) ([]ExtraLink, error) + func (sg *Spyglass) JobPath(src string) (string, error) + func (sg *Spyglass) Lenses(lensConfigIndexes []int) (orderedIndexes []int, lensMap map[int]LensConfig) + func (sg *Spyglass) ProwJob(src string) (string, string, prowapi.ProwJobState, error) + func (sg *Spyglass) ResolveSymlink(src string) (string, error) + func (sg *Spyglass) RunPath(src string) (string, error) + func (sg *Spyglass) RunToPR(src string) (string, string, int, error) + func (sg *Spyglass) Start() + func (sg *Spyglass) TestGridLink(src string) (string, error) + type StorageArtifact struct + func NewStorageArtifact(ctx context.Context, handle artifactHandle, link string, path string, ...) *StorageArtifact + func (a *StorageArtifact) CanonicalLink() string + func (a *StorageArtifact) JobPath() string + func (a *StorageArtifact) Metadata() (map[string]string, error) + func (a *StorageArtifact) ReadAll() ([]byte, error) + func (a *StorageArtifact) ReadAt(p []byte, off int64) (n int, err error) + func (a *StorageArtifact) ReadAtMost(n int64) ([]byte, error) + func (a *StorageArtifact) ReadTail(n int64) ([]byte, error) + func (a *StorageArtifact) Size() (int64, error) + func (a *StorageArtifact) UpdateMetadata(meta map[string]string) error + type StorageArtifactFetcher struct + func NewStorageArtifactFetcher(opener pkgio.Opener, cfg config.Getter, useCookieAuth bool) *StorageArtifactFetcher + func (af *StorageArtifactFetcher) Artifact(ctx context.Context, key string, artifactName string, sizeLimit int64) (api.Artifact, error) + type TestGrid struct + func (tg *TestGrid) FindQuery(jobName string) (string, error) + func (tg *TestGrid) Ready() bool + func (tg *TestGrid) Start()