executor

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 19 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

Overview

Package executor applies a complete verified series to a private prepared workspace using real GNU patch on Linux. It never opens original inputs or publishes output. The caller owns the surrounding staging/run directory.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTool

func ValidateTool(ctx context.Context, name string) (string, error)

ValidateTool resolves a local executable and checks its GNU patch version identity without changing a workspace. A normal audit needs real GNU patch; diagnostics for GNU patch 2.7.6 are independently tested. Other GNU versions must still produce the same conservative clean-application diagnostic grammar. No caller environment variables affecting patch behavior are inherited.

Types

type Executor

type Executor struct{}

Executor implements the fixed v1 timeout and combined diagnostic byte limit. Successful results include the digest and restored final modes. If execution begins and fails, workspace contents are removed; preflight failures leave the prepared workspace untouched. The caller removes the workspace root/staging.

func (Executor) Execute

Execute consumes only prepared source and verified staged patches. All stage descriptors are opened, rehashed and retained before any application process. Patches preserve declaration order. Operational diagnostics are bounded and separate from portable evidence; success contains no raw diagnostic logs.

Jump to

Keyboard shortcuts

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