jobserver

package
v6.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2020 License: Apache-2.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Badge

type Badge struct {
	Width     int
	FillColor string
	Status    string
	Title     string
}

func BadgeForBuild

func BadgeForBuild(build db.Build) Badge

func (*Badge) EnrichFromQuery

func (b *Badge) EnrichFromQuery(params url.Values)

func (*Badge) StatusTextWidth

func (b *Badge) StatusTextWidth() string

func (*Badge) StatusWidth

func (b *Badge) StatusWidth() int

func (*Badge) String

func (b *Badge) String() string

type Server

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

func NewServer

func NewServer(
	logger lager.Logger,
	externalURL string,
	secretManager creds.Secrets,
	jobFactory db.JobFactory,
	checkFactory db.CheckFactory,
) *Server

func (*Server) ClearTaskCache

func (s *Server) ClearTaskCache(pipeline db.Pipeline) http.Handler

func (*Server) CreateJobBuild

func (s *Server) CreateJobBuild(pipeline db.Pipeline) http.Handler

func (*Server) GetJob

func (s *Server) GetJob(pipeline db.Pipeline) http.Handler

func (*Server) GetJobBuild

func (s *Server) GetJobBuild(pipeline db.Pipeline) http.Handler

func (*Server) JobBadge

func (s *Server) JobBadge(pipeline db.Pipeline) http.Handler

func (*Server) ListAllJobs

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

func (*Server) ListJobBuilds

func (s *Server) ListJobBuilds(pipeline db.Pipeline) http.Handler

func (*Server) ListJobInputs

func (s *Server) ListJobInputs(pipeline db.Pipeline) http.Handler

func (*Server) ListJobs

func (s *Server) ListJobs(pipeline db.Pipeline) http.Handler

func (*Server) PauseJob

func (s *Server) PauseJob(pipeline db.Pipeline) http.Handler

func (*Server) RerunJobBuild

func (s *Server) RerunJobBuild(pipeline db.Pipeline) http.Handler

func (*Server) ScheduleJob

func (s *Server) ScheduleJob(pipeline db.Pipeline) http.Handler

func (*Server) UnpauseJob

func (s *Server) UnpauseJob(pipeline db.Pipeline) http.Handler

Jump to

Keyboard shortcuts

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