Documentation
¶
Index ¶
- Constants
- func IsMessageFromPlugin(source string) bool
- type Condition
- type Env
- type EnvParam
- type Error
- type Fact
- type FullMessage
- type LiteralCommand
- type LiteralParam
- type LogReader
- type LogReaderProvider
- type Message
- type Pipeline
- type PipelineDefinition
- type PipelineResult
- type PipelineStatus
- type RawCommand
- type RawParam
- type ResolvedRunConfig
- type RunConfig
- type Setup
- type Status
- type Step
- type Trigger
- type Var
- type VarParam
- type WorkerAckRequest
- type WorkerLogsPositionResponse
- type WorkerQueueResponse
Constants ¶
View Source
const BROADCAST_MESSAGE = "*"
View Source
const DEFAULT_STAGE = "default"
View Source
const DEFAULT_WORKER_GROUP = "default"
View Source
const ENV_PREFIX = "env "
View Source
const ERROR_UNAVAILABLE = Error("not available")
View Source
const EVENT_STARTUP_COMPLETE = "startup complete"
View Source
const MESSAGE_SOURCE_API = "*api"
View Source
const MESSAGE_SOURCE_SERVER = "*server"
View Source
const VAR_PREFIX = "var "
Variables ¶
This section is empty.
Functions ¶
func IsMessageFromPlugin ¶
Types ¶
type Condition ¶
type Condition struct {
// Text
Include []string `json:"include" yaml:"include"`
Exclude []string `json:"exclude" yaml:"exclude"`
// Env
IncludeEnv []string `json:"include env" yaml:"include env"`
ExcludeEnv []string `json:"exclude env" yaml:"exclude env"`
// Vars
IncludeVar []string `json:"include var" yaml:"include var"`
ExcludeVar []string `json:"exclude var" yaml:"exclude var"`
// Regex
Match []string `json:"match" yaml:"match"`
Mismatch []string `json:"mismatch" yaml:"mismatch"`
}
type FullMessage ¶
type LiteralCommand ¶ added in v1.2.0
type LiteralCommand []string
type LiteralParam ¶
type LiteralParam string
type LogReaderProvider ¶
type Message ¶
type Pipeline ¶
type Pipeline struct {
PipelineDefinition `yaml:",inline"`
Env map[string]Env `json:"env" yaml:"env"`
Facts map[string]Fact `json:"facts" yaml:"facts"`
TaskDomains map[string]string `json:"taskDomains" yaml:"taskDomains"`
TrustedDomains []string `json:"trustedDomains" yaml:"trustedDomains"`
TrustedTasks []string `json:"trustedTasks" yaml:"trustedTasks"`
Setup Setup `json:"setup" yaml:"setup"`
}
type PipelineDefinition ¶
type PipelineResult ¶
type PipelineStatus ¶
type PipelineStatus struct {
Pipeline Pipeline
WorkerGroup string
ActivityID string
Status Status
Logs LogReaderProvider
Result PipelineResult
}
func (*PipelineStatus) Finished ¶
func (s *PipelineStatus) Finished() bool
func (*PipelineStatus) Running ¶
func (s *PipelineStatus) Running() bool
type RawCommand ¶ added in v1.2.0
type RawCommand any
type ResolvedRunConfig ¶
type RunConfig ¶
type RunConfig struct {
Task string `json:"task" yaml:"task"`
Command RawCommand `json:"command" yaml:"command"`
Input RawParam `json:"input" yaml:"input"`
Directory RawParam `json:"directory" yaml:"directory"`
User RawParam `json:"user" yaml:"user"`
Params map[string]RawParam `json:"params" yaml:"params"`
}
type Status ¶
type Status string
const STATUS_ENQUEUED Status = "enqueued"
const STATUS_FAILED Status = "failed"
const STATUS_RUNNING Status = "running"
const STATUS_SUCCESS Status = "success"
const STATUS_TIMEOUT Status = "timeout"
const STATUS_WAITING Status = "waiting"
type WorkerAckRequest ¶
type WorkerAckRequest struct {
Contract string `json:"contract"`
}
type WorkerLogsPositionResponse ¶
type WorkerLogsPositionResponse struct {
Position int64 `json:"position"`
}
type WorkerQueueResponse ¶
Click to show internal directories.
Click to hide internal directories.