Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShellQuote ¶
ShellQuote quotes a string for a POSIX shell command argument.
func ValueDigest ¶
Types ¶
type ExecRunner ¶
type ExecRunner struct{}
ExecRunner runs commands with os/exec and captures stdout, stderr, and exit status in the shared transport shape.
type OperationResult ¶
type OperationResult struct {
Operation string `json:"operation"`
Status string `json:"status"`
TargetDigest string `json:"targetDigest"`
Command []string `json:"command"`
Stdout string `json:"stdout,omitempty"`
Stderr string `json:"stderr,omitempty"`
ExitCode int `json:"exitCode"`
TimedOut bool `json:"timedOut"`
DurationMillis int64 `json:"durationMillis"`
Error string `json:"error,omitempty"`
}
OperationResult is the evidence-safe receipt for one transport primitive.
type Redactor ¶
type Redactor struct {
// contains filtered or unexported fields
}
Redactor removes secret material from command and output evidence.
func NewRedactor ¶
func (Redactor) RedactArgs ¶
func (Redactor) RedactString ¶
Click to show internal directories.
Click to hide internal directories.