Documentation
¶
Index ¶
- Constants
- func EnvironmentFromList(values []string) map[string]string
- func EnvironmentList(env map[string]string) []string
- func JobEnvironment(values map[string]interface{}) map[string]string
- func MergeEnvironment(envs ...map[string]string) map[string]string
- func NormalizeRunnerName(name string) string
- func ResolveDockerImage(runsOn string) string
- func Supported() []string
- type ExecContext
- type Executor
- type JobFinalizer
- type RuntimeContext
Constants ¶
View Source
const ( DefaultDockerImage = "ubuntu:22.04" WorkspaceMountPath = "/workspace" )
Variables ¶
This section is empty.
Functions ¶
func EnvironmentFromList ¶
func EnvironmentList ¶
func JobEnvironment ¶
func NormalizeRunnerName ¶
func ResolveDockerImage ¶
Types ¶
type ExecContext ¶
type ExecContext struct {
Context context.Context
WorkspaceDir string
WorkDir string
UseWorkDirOverride bool
BaseEnv map[string]string
JobEnv map[string]string
StepEnv map[string]string
Env map[string]string
Runtime RuntimeContext
Stdout io.Writer
Stderr io.Writer
DryRun bool
}
ExecContext carries runtime settings for a single executor invocation.
type Executor ¶
type Executor interface {
Name() string
Prepare(ctx ExecContext) error
RunStep(ctx ExecContext, job model.PlanJob, step model.PlanStep) (output string, err error)
Cleanup(ctx ExecContext) error
}
Executor runs plan steps using a specific backend.
type JobFinalizer ¶
type JobFinalizer interface {
FinalizeJob(ctx ExecContext, job model.PlanJob) (output string, err error)
}
JobFinalizer is implemented by executors that need job-level cleanup or post-step handling.
type RuntimeContext ¶
RuntimeContext captures the selected execution backend and environment class.
Click to show internal directories.
Click to hide internal directories.