Documentation ¶
Index ¶
- Constants
- func NewEventHandler(logger lager.Logger, build dbng.Build) http.Handler
- func NewScopedHandlerFactory(logger lager.Logger) *scopedHandlerFactory
- type EventHandlerFactory
- type Server
- func (s *Server) AbortBuild(build dbng.Build) http.Handler
- func (s *Server) BuildEvents(build dbng.Build) http.Handler
- func (s *Server) BuildResources(build dbng.Build) http.Handler
- func (s *Server) CreateBuild(teamDB db.TeamDB, team dbng.Team) http.Handler
- func (s *Server) GetBuild(build dbng.Build) http.Handler
- func (s *Server) GetBuildPlan(build dbng.Build) http.Handler
- func (s *Server) GetBuildPreparation(build dbng.Build) http.Handler
- func (s *Server) ListBuilds(w http.ResponseWriter, r *http.Request)
Constants ¶
View Source
const CurrentProtocolVersion = "2.0"
View Source
const ProtocolVersionHeader = "X-ATC-Stream-Version"
Variables ¶
This section is empty.
Functions ¶
func NewScopedHandlerFactory ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer( logger lager.Logger, externalURL string, engine engine.Engine, workerClient worker.Client, teamFactory dbng.TeamFactory, buildFactory dbng.BuildFactory, eventHandlerFactory EventHandlerFactory, drain <-chan struct{}, ) *Server
func (*Server) CreateBuild ¶
func (*Server) GetBuildPreparation ¶
func (*Server) ListBuilds ¶
func (s *Server) ListBuilds(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.