getjob

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Err = errors.New("could not find job")
View Source
var ErrJobConfigNotFound = errors.New("could not find job")

Functions

func NewServer

func NewServer(logger lager.Logger, template *template.Template) *server

Types

type JobDB

type JobDB interface {
	GetConfig() (atc.Config, db.ConfigVersion, error)
	GetJob(string) (db.SavedJob, error)
	GetAllJobBuilds(job string) ([]db.Build, error)
	GetCurrentBuild(job string) (db.Build, error)
	GetPipelineName() string
}

type TemplateData

type TemplateData struct {
	Job    atc.JobConfig
	DBJob  db.SavedJob
	Builds []db.Build

	GroupStates []group.State

	CurrentBuild db.Build
	PipelineName string
}

func FetchTemplateData

func FetchTemplateData(jobDB JobDB, jobName string) (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