types

package
v0.0.0-...-feeaf7e Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

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", "无效的事件类型")

Functions

This section is empty.

Types

type Env

type Env string

type Envs

type Envs map[Env]string

func (Envs) ToDocker

func (envs Envs) ToDocker() string

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

type StartRequest

type StartRequest struct {
	GitRepoUsername string
	GitRepoPassword string
	GitRepoUrl      string
	GitCiFilePath   string
	GitSha          string

	CiFileContent string

	Event EventType
}

Jump to

Keyboard shortcuts

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