handler

package
v0.0.0-...-cb90f35 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RepositoryBuilds

func RepositoryBuilds(w http.ResponseWriter, r *http.Request)

Types

type Build

type Build struct {
	BuildId     string `json:build_id`
	SCMId       string `json:"scm_id"`
	Repository  string `json:"repository"`
	Tag         string `json:"tag"`
	BuildStatus string `json:"build_status"`
	Timestamp   int64  `json:"timestamp"`
	StartTime   int64  `json:"start_time"`
	EndTime     int64  `json:"end_time"`
	//Logs         string `json:logs`
	Commit string `json:"commit"`
}

type BuildHandler

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

func NewBuildHandler

func NewBuildHandler(buildChan chan models.BuildJob, config *configuration.Options) BuildHandler

func (BuildHandler) Build

func (b BuildHandler) Build(w http.ResponseWriter, r *http.Request)

type BuildsResponse

type BuildsResponse struct {
	Builds []string `json:"builds"`
}

type EnqueueHandler

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

func NewEnqueueHandler

func NewEnqueueHandler(config *configuration.Options) EnqueueHandler

func (EnqueueHandler) EnqueueBuild

func (eh EnqueueHandler) EnqueueBuild(w http.ResponseWriter, r *http.Request)

type RepositoryBuildsRequest

type RepositoryBuildsRequest struct {
	ParentKey string `json:"parent_key"`
}

Jump to

Keyboard shortcuts

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