Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler holds the server context
func NewHandler ¶
NewHandler createss a new HTTP handler
func (*Handler) GetJenkinsBuild ¶
func (h *Handler) GetJenkinsBuild() http.HandlerFunc
GetJenkinsBuild returns data about the given build
func (*Handler) ProcessBuild ¶
func (h *Handler) ProcessBuild() http.HandlerFunc
ProcessBuild Triggers of a job to process a given build
func (*Handler) ProcessOptions ¶
func (h *Handler) ProcessOptions() http.HandlerFunc
ProcessOptions handles the OPTIONS call for CORS
func (*Handler) ServiceMetadata ¶
func (h *Handler) ServiceMetadata() http.HandlerFunc
ServiceMetadata displays hopefully useful information about the service
type ProcessRequest ¶
type ProcessRequest struct { BuildID string `json:"buildId,omitempty"` BuildURL string `json:"buildUrl"` Recrawl bool `json:"forceRecrawl,omitempty"` }
ProcessRequest represents the json payload of the request
type ProcessResponse ¶
type ProcessResponse struct {
Location string `json:"location"`
}
ProcessResponse represents the response from a requested processing
Click to show internal directories.
Click to hide internal directories.