models

package
v0.0.0-...-88863c8 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2017 License: MIT Imports: 1 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Hostname       string               `validate:"nonblank"` // The hostname that did the build
	Architecture   string               `validate:"nonblank"` // 386, AMD64 etc
	GoVersion      string               `validate:""`         // Version of Go used to build the binary
	SourceURL      string               `validate:"nonblank"` // The VCS url, down to the commit level
	BinaryURL      string               `validate:"nonblank"` // The location of the binary or JAR
	Version        string               `validate:"nonblank"` // Initially a human readable date. Eg. 20130601114431
	Language       string               `validate:"nonblank"` // Programming language
	Name           string               `validate:"nonblank"` // The service name
	Branch         string               `validate:"nonblank"` // The Git branch
	TimeStamp      int64                // UTC unix timestamp
	Coverage       map[string]float64   `json:"Coverage,omitempty"` // The code coverage as package => percentage
	Dependencies   map[string]string    `json:",omitempty"`         // The dependencies as importPath => commit
	MergeBaseDates map[string]time.Time `json:",omitempty"`         // The merge base dates of dependency commits
}

Build stores metadata relating to a specific build

type Coverage

type Coverage struct {
	PackageName string
	Percentage  float64
}

type CoverageSnapshot

type CoverageSnapshot struct {
	Coverages []Coverage
	Branch    string
	Version   string
	Timestamp int64
}

type CoverageSnapshots

type CoverageSnapshots []CoverageSnapshot

func (CoverageSnapshots) Len

func (c CoverageSnapshots) Len() int

func (CoverageSnapshots) Less

func (c CoverageSnapshots) Less(i, j int) bool

func (CoverageSnapshots) Swap

func (c CoverageSnapshots) Swap(i, j int)

Jump to

Keyboard shortcuts

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