Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllRunnerJobTypes ¶
func AllRunnerJobTypes() []string
AllRunnerJobTypes returns all known runner job types.
Types ¶
type SandboxLogTemplate ¶
type SandboxLogTemplate struct {
Key string `json:"key"`
Description string `json:"description"`
Category string `json:"category"`
Type string `json:"type"` // e.g. "failing-action", "kube-action", "success"
Lines []string `json:"lines"`
}
SandboxLogTemplate represents a pre-built log template that can be used to populate sandbox config log lines.
type SandboxPlanTemplate ¶
type SandboxPlanTemplate struct {
Key string `json:"key"`
Description string `json:"description"`
Category string `json:"category"`
Type string `json:"type"` // e.g. "noop", "s3", "database", "full-sandbox"
Contents string `json:"contents"`
}
SandboxPlanTemplate represents a pre-built plan template that can be used to populate sandbox config plan contents.
type SandboxTemplates ¶
type SandboxTemplates struct {
LogTemplates []SandboxLogTemplate `json:"log_templates"`
PlanTemplates []SandboxPlanTemplate `json:"plan_templates"`
PlanDisplayTemplates []SandboxPlanTemplate `json:"plan_display_templates"`
StateTemplates []SandboxPlanTemplate `json:"state_templates"`
}
SandboxTemplates is the response for the templates endpoint.
func DefaultSandboxTemplates ¶
func DefaultSandboxTemplates() SandboxTemplates
type Signal ¶
Signal wraps a real signal and checks for a SandboxModeSignalConfig. Config is fetched on the first call to Validate or Execute and cached. If a config exists and is enabled, sandbox behavior is applied instead of the real signal logic.
func WrapSignal ¶
WrapSignal wraps the given signal with sandbox-mode checking.
func (*Signal) RegisterUpdateHandlers ¶
func (*Signal) WithParams ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.