runner

package
v0.0.94 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2026 License: BSD-3-Clause Imports: 25 Imported by: 2

Documentation

Index

Constants

View Source
const Option_Do_Main bool = false
View Source
const Option_Embed_Main bool = false

Variables

View Source
var (

	// Seccomp options (Linux only) - using pure Go library
	SeccompProfile = flag.String("seccomp-profile", "", "Seccomp profile to use: strict, readonly")
	SeccompAction  = flag.String("seccomp-action", "errno", "Action on restricted syscalls: errno, kill, trap, log")

	// Landlock options (Linux only) - using landlock-go library
	LandlockEnabled = flag.Bool("landlock", false, "Enable landlock filesystem access control")
	LandlockProfile = flag.String("landlock-profile", "readonly", "Landlock profile: readonly, readexec, custom")
	LandlockPaths   = flag.String("landlock-paths", "", "Comma-separated list of paths to allow access to (for custom profile)")

	// Code signing options
	CodeSigEnforced = flag.Bool("codesig", false, "Enforce code signature verification")

	// Inspect/debugging options
	NoInspect = flag.Bool("noinspect", false, "Exit immediately on error without showing debugging options")
)
View Source
var CurrentScriptDirectory string

CurrentScriptDirectory stores the directory of the currently executing script

View Source
var Rye_files embed.FS
View Source
var Version = "development"

Version variable is set during build using -ldflags eg in Goreleaser: https://goreleaser.com/cookbooks/using-main.version

Functions

func ClearCurrentProgramState added in v0.0.88

func ClearCurrentProgramState()

ClearCurrentProgramState unregisters the program state

func DoMain

func DoMain(regfn func(*env.ProgramState) error)

func GetScriptDirectory added in v0.0.81

func GetScriptDirectory() string

GetScriptDirectory returns the directory of the currently executing script

func SetCurrentProgramState added in v0.0.88

func SetCurrentProgramState(ps *env.ProgramState)

SetCurrentProgramState registers the currently executing program state for signal handling

Types

This section is empty.

Jump to

Keyboard shortcuts

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