sandboxmode

package
v0.19.897 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0

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

type Signal struct {
	signal.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

func WrapSignal(inner signal.Signal) *Signal

WrapSignal wraps the given signal with sandbox-mode checking.

func (*Signal) Execute

func (s *Signal) Execute(ctx workflow.Context) error

func (*Signal) RegisterUpdateHandlers

func (s *Signal) RegisterUpdateHandlers(ctx workflow.Context) error

func (*Signal) Validate

func (s *Signal) Validate(ctx workflow.Context) error

func (*Signal) WithParams

func (s *Signal) WithParams(params *signal.Params)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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