Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForceRunHandler ¶
type ForceRunHandler struct {
RunQueue chan<- bool
}
ForceRunHandler implements the http.Handle interface and serves an API endpoint for forcing a new run.
func (*ForceRunHandler) ServeHTTP ¶
func (f *ForceRunHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP handles requests for forcing a run by attempting to add to the runQueue, and writes a response including the result and a relevant message.
type StatusPageHandler ¶
type StatusPageHandler struct { Template *template.Template Data interface{} Clock sysutil.ClockInterface }
StatusPageHandler implements the http.Handler interface and serves a status page with info about the most recent applier run.
func (*StatusPageHandler) ServeHTTP ¶
func (s *StatusPageHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP populates the status page template with data and serves it when there is a request.
Click to show internal directories.
Click to hide internal directories.