escalation

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dispatch

func Dispatch(command string, result engine.AuditResult)

Dispatch runs command via "sh -c <command>" when any escalate or alert check failed. Best-effort: errors are printed to stderr; the caller's exit code is unaffected. No-op if command is empty or no qualifying failures exist.

Types

type Payload

type Payload struct {
	Severity string               `json:"severity"`
	Summary  string               `json:"summary"`
	Failures []engine.CheckResult `json:"failures"`
}

Payload is piped to stdin of the escalation command as JSON.

Jump to

Keyboard shortcuts

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