precheck_before_pop

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CheckResultEnd = "end"
View Source
const CheckResultFailed = "failed"
View Source
const CheckResultSuccess = "success"
View Source
const HookType = "before-run-check"

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckRunResult

type CheckRunResult struct {
	CheckResult string      `json:"checkResult"`
	RetryOption RetryOption `json:"retryOption"`
	Message     string      `json:"message"`
}

type CheckRunResultRequest

type CheckRunResultRequest struct {
	Hook                string                 `json:"hook"`
	Labels              map[string]interface{} `json:"labels"`
	Source              string                 `json:"source"`
	PipelineYamlName    string                 `json:"pipelineYamlName"`
	PipelineYamlContent string                 `json:"pipelineYamlContent"`
}

type CheckRunResultResponse

type CheckRunResultResponse struct {
	apistructs.Header
	CheckRunResult CheckRunResult `json:"data"`
}

type HookBeforeCheckRun

type HookBeforeCheckRun interface {
	CheckRun() (*CheckRunResult, error)
	GetPipelineWithTasks()
}

type HttpBeforeCheckRun

type HttpBeforeCheckRun struct {
	PipelineID uint64
	Bdl        *bundle.Bundle
	DBClient   *dbclient.Client
}

func (HttpBeforeCheckRun) CheckRun

func (beforeCheckRun HttpBeforeCheckRun) CheckRun() (result *CheckRunResult, err error)

type RetryOption

type RetryOption struct {
	IntervalSecond      uint64 `json:"intervalSecond"`
	IntervalMillisecond uint64 `json:"intervalMillisecond"`
}

Jump to

Keyboard shortcuts

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