build

package
v0.0.0-...-9c90d3e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAbort

func HandleAbort(buildAbortService core.BuildAbortService,
	logger lumber.Logger) gin.HandlerFunc

HandleAbort aborts the queued or running build

func HandleBuildDetails

func HandleBuildDetails(
	buildStore core.BuildStore,
	logger lumber.Logger) gin.HandlerFunc

HandleBuildDetails return details for a particular build for a repo

func HandleFetchLogs

func HandleFetchLogs(
	azureClient core.AzureBlob,
	logger lumber.Logger) gin.HandlerFunc

HandleFetchLogs returns details of logs for a build

func HandleFetchMetrics

func HandleFetchMetrics(
	repoStore core.RepoStore,
	testExecutionService core.TestExecutionService,
	logger lumber.Logger) gin.HandlerFunc

HandleFetchMetrics returns details of test metrics for a repo

func HandleFindDiff

func HandleFindDiff(
	buildStore core.BuildStore,
	logger lumber.Logger) gin.HandlerFunc

HandleFindDiff return commit diff for a repo

func HandleFindTimeSaved

func HandleFindTimeSaved(
	buildMonitor core.BuildMonitor,
	logger lumber.Logger) gin.HandlerFunc

HandleFindTimeSaved finds the time saved by not running unimpacted tests.

func HandleList

func HandleList(
	buildStore core.BuildStore,
	logger lumber.Logger) gin.HandlerFunc

HandleList return builds for a repo

func HandleListMeta

func HandleListMeta(
	buildStore core.BuildStore,
	logger lumber.Logger) gin.HandlerFunc

HandleListMeta returns build Meta for a repo

func HandleListTasks

func HandleListTasks(taskStore core.TaskStore, logger lumber.Logger) gin.HandlerFunc

HandleListTasks fetches the list of all tasks which are there in a particular build

func HandleRebuild

func HandleRebuild(
	buildService core.BuildService,
	taskStore core.TaskStore,
	logger lumber.Logger,
	repoStore core.RepoStore,
	userStore core.GitUserStore,
	buildStore core.BuildStore,
	gitEventStore core.GitEventStore,
) gin.HandlerFunc

HandleRebuild re-builds a particular buildID

Types

type ReBuildRequest

type ReBuildRequest struct {
	Org     string `json:"org"`
	Repo    string `json:"repo"`
	BuildID string `json:"build_id"`
}

ReBuildRequest stores rebuild request

Jump to

Keyboard shortcuts

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