getbuilds

package
v0.0.0-...-0e89551 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(logger lager.Logger, db BuildsDB, configDB db.ConfigDB, template *template.Template) http.Handler

Types

type BuildsDB

type BuildsDB interface {
	GetAllBuilds() ([]db.Build, error)
}

type PresentedBuild

type PresentedBuild struct {
	ID           int
	JobName      string
	PipelineName string
	Status       string

	StartTime string
	EndTime   string

	CSSClass string
	Path     string
}

func PresentBuilds

func PresentBuilds(builds []db.Build) []PresentedBuild

type TemplateData

type TemplateData struct {
	Builds []PresentedBuild
}

func FetchTemplateData

func FetchTemplateData(buildDB BuildsDB, configDB db.ConfigDB) (TemplateData, error)

Directories

Path Synopsis
This file was generated by counterfeiter
This file was generated by counterfeiter

Jump to

Keyboard shortcuts

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