Documentation
¶
Index ¶
- type ErrorResponse
- type Job
- type JobResponse
- type Server
- func (s *Server) HandleBlock(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleGetJobStatus(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleHealth(w http.ResponseWriter, _ *http.Request)
- func (s *Server) HandleReady(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleStartContainers(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleStopContainers(w http.ResponseWriter, r *http.Request)
- func (s *Server) HandleUnblock(w http.ResponseWriter, r *http.Request)
- func (s *Server) LoggingMiddleware(next http.Handler) http.Handler
- func (s *Server) RecoveryMiddleware(next http.Handler) http.Handler
- func (s *Server) Router() http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorResponse ¶
type ErrorResponse struct {
Error string `json:"error"`
}
type Job ¶ added in v1.0.7
type Job struct {
ID string `json:"id"`
Type string `json:"type"`
Status string `json:"status"`
CreatedAt time.Time `json:"created_at"`
StartedAt time.Time `json:"started_at"`
EndedAt time.Time `json:"ended_at"`
Timeout int64 `json:"timeout"`
Ignore []string `json:"ignore"`
Started []string `json:"started,omitempty"`
Stopped []string `json:"stopped,omitempty"`
Skipped []string `json:"skipped,omitempty"`
Failed []string `json:"failed,omitempty"`
Outcomes []lifecycle.ContainerResult `json:"outcomes,omitempty"`
Error string `json:"error,omitempty"`
}
type JobResponse ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) HandleBlock ¶ added in v1.0.2
func (s *Server) HandleBlock(w http.ResponseWriter, r *http.Request)
func (*Server) HandleGetJobStatus ¶ added in v1.0.3
func (s *Server) HandleGetJobStatus(w http.ResponseWriter, r *http.Request)
func (*Server) HandleHealth ¶
func (s *Server) HandleHealth(w http.ResponseWriter, _ *http.Request)
func (*Server) HandleReady ¶ added in v1.0.7
func (s *Server) HandleReady(w http.ResponseWriter, r *http.Request)
func (*Server) HandleStartContainers ¶
func (s *Server) HandleStartContainers(w http.ResponseWriter, r *http.Request)
func (*Server) HandleStopContainers ¶
func (s *Server) HandleStopContainers(w http.ResponseWriter, r *http.Request)
func (*Server) HandleUnblock ¶ added in v1.0.2
func (s *Server) HandleUnblock(w http.ResponseWriter, r *http.Request)
func (*Server) LoggingMiddleware ¶
LoggingMiddleware logs HTTP requests with structured logging
func (*Server) RecoveryMiddleware ¶
RecoveryMiddleware recovers from panics and logs them
Click to show internal directories.
Click to hide internal directories.