sandboxmode

package
v0.19.1237 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllRunnerJobOperationTypes added in v0.19.915

func AllRunnerJobOperationTypes() []string

AllRunnerJobOperationTypes returns all known runner job operation types.

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