metadata

package
v0.0.0-...-d7867ec Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package metadata provides a metadata viewer for Spyglass

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Derived

type Derived struct {
	StartTime        time.Time
	FinishedTime     time.Time
	Elapsed          time.Duration
	Done             bool
	Status           string
	GCSArtifactsLink string
}

Derived contains metadata derived from provided metadata for insertion into the template

type Lens

type Lens struct{}

Lens is the implementation of a metadata-rendering Spyglass lens.

func (Lens) Body

func (lens Lens) Body(artifacts []lenses.Artifact, resourceDir string, data string) string

Body creates a view for prow job metadata. TODO: os image,

func (Lens) Callback

func (lens Lens) Callback(artifacts []lenses.Artifact, resourceDir string, data string) string

Callback does nothing.

func (Lens) Header

func (lens Lens) Header(artifacts []lenses.Artifact, resourceDir string) string

Header renders the <head> from template.html.

func (Lens) Name

func (lens Lens) Name() string

Name returns the name.

func (Lens) Priority

func (lens Lens) Priority() int

Priority returns the priority.

func (Lens) Title

func (lens Lens) Title() string

Title returns the title.

Jump to

Keyboard shortcuts

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