Documentation
¶
Index ¶
Constants ¶
View Source
const ENV_GIT_REPO_NAME = "GIT_REPO_NAME"
View Source
const ENV_GIT_REPO_PASSWORD = "GIT_PASSWORD"
View Source
const ENV_GIT_REPO_URL = "GIT_REPO_URL"
View Source
const ENV_GIT_REPO_USERNAME = "GIT_USERNAME"
View Source
const ENV_TASK_NAME = "TASK_NAME"
Variables ¶
View Source
var ErrInvalidEventType = uerror.NewUError(400, "ErrInvalidEventType", "无效的事件类型")
View Source
var EventTypeList = []EventType{EventPush, EventTag, EventAPI, EventMergeRequest}
Functions ¶
This section is empty.
Types ¶
type EventType ¶
type EventType string
const EventAPI EventType = "api"
const EventMergeRequest EventType = "merge_request"
const EventPush EventType = "push"
const EventTag EventType = "tag"
type StartContext ¶
type StartContext struct {
echo.Context
StartRequest *StartRequest
TaskName string
Event EventType
Envs Envs
WithGit bool
GitRepoUsername string
GitRepoPassword string
GitRepoUrl string
GitRepoName string
Runner *model.Runner
}
func StartContextFromContext ¶
func StartContextFromContext(c echo.Context) *StartContext
Click to show internal directories.
Click to hide internal directories.