grid

package
v0.0.0-...-900fa13 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2015 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cell

type Cell struct {
	Id      CellId        `bson:"_id" json:"cellId"`
	History []CellHistory `bson:"h" json:"history"`
}

Cell contains information for each cell on the Grid page. It includes both the cell's identifier and its history.

type CellHistory

type CellHistory struct {
	Id            string                  `bson:"d" json:"id"`
	Revision      string                  `bson:"v" json:"revision"`
	Status        string                  `bson:"s" json:"status"`
	StatusDetails apimodels.TaskEndDetail `bson:"e" json:"task_end_details"`
}

CellHistory holds historical data for each cell on the Grid page.

type CellId

type CellId struct {
	Task    string `bson:"d" json:"task"`
	Variant string `bson:"v" json:"variant"`
}

CellId represents a unique identifier for each cell on the Grid page.

type Failure

type Failure struct {
	Id       FailureId     `bson:"_id" json:"identifier"`
	Variants []VariantInfo `bson:"a" json:"variants"`
}

Failure contains data for a particular test failure - including the test's task display name, and the variants its failing on.

type FailureId

type FailureId struct {
	Test string `bson:"t" json:"test"`
	Task string `bson:"d" json:"task"`
}

type Failures

type Failures []Failure

Failures holds failures.

func FetchFailures

func FetchFailures(current version.Version, depth int) (Failures, error)

FetchFailures returns the most recent test failures that have occurred at or before the current version - looking back as far as depth versions.

type Grid

type Grid []Cell

Grid is a slice of cells.

func FetchCells

func FetchCells(current version.Version, depth int) (Grid, error)

FetchCells returns a Grid of Cells - grouped by variant and display name. current is the most recent version and from which to fetch prior Cells going back as far as depth versions.

type VariantInfo

type VariantInfo struct {
	Name   string `bson:"n" json:"name"`
	TaskId string `bson:"i" json:"task_id"`
}

VariantInfo holds information for each variant a test fails on.

Jump to

Keyboard shortcuts

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