buildserver

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

Documentation

Index

Constants

View Source
const CurrentProtocolVersion = "2.0"
View Source
const ProtocolVersionHeader = "X-ATC-Stream-Version"

Variables

This section is empty.

Functions

func NewEventHandler

func NewEventHandler(buildsDB BuildsDB, buildID int, censor bool) http.Handler

Types

type BuildsDB

type BuildsDB interface {
	GetBuild(buildID int) (db.Build, error)
	GetBuildEvents(buildID int, from uint) (db.EventSource, error)

	GetAllBuilds() ([]db.Build, error)

	CreateOneOffBuild() (db.Build, error)
	GetConfigByBuildID(buildID int) (atc.Config, db.ConfigVersion, error)
}

type EventHandlerFactory

type EventHandlerFactory func(BuildsDB, int, bool) http.Handler

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	logger lager.Logger,
	engine engine.Engine,
	workerClient worker.Client,
	db BuildsDB,
	configDB db.ConfigDB,
	eventHandlerFactory EventHandlerFactory,
	drain <-chan struct{},
	fallback auth.Validator,
) *Server

func (*Server) AbortBuild

func (s *Server) AbortBuild(w http.ResponseWriter, r *http.Request)

func (*Server) BuildEvents

func (s *Server) BuildEvents(w http.ResponseWriter, r *http.Request)

func (*Server) CreateBuild

func (s *Server) CreateBuild(w http.ResponseWriter, r *http.Request)

func (*Server) ListBuilds

func (s *Server) ListBuilds(w http.ResponseWriter, r *http.Request)

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