exitcode

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package exitcode defines unified exit codes for epack CLI operations. These codes are stable and used by both collectors and tools.

Note: The ExitError type has been unified into the errors package. Use errors.E() or errors.WithHint() to create errors with exit codes.

Index

Constants

View Source
const (
	Success = 0 // Operation completed successfully
	General = 1 // General/unspecified error
)

General exit codes (0-9)

View Source
const (
	LockInvalid       = 10 // Lockfile missing, invalid, or mismatched
	DigestMismatch    = 11 // Binary digest doesn't match lockfile
	SignatureMismatch = 12 // Sigstore signature verification failed
	Timeout           = 13 // Operation timed out
	MissingBinary     = 14 // Binary not found/installed
	Network           = 15 // Network error during fetch
)

Component exit codes (10-19) - used by collector and tool operations

View Source
const (
	ToolNotFound      = 10 // Tool binary not found
	ToolVerifyFailed  = 11 // Tool digest verification failed
	PackVerifyFailed  = 12 // Pack integrity verification failed
	LockfileMissing   = 13 // Lockfile missing for configured tool
	RunDirFailed      = 14 // Failed to create run directory
	ConfigFileFailed  = 15 // Failed to write tool config file
	PackRequired      = 16 // Tool requires pack but none provided
	DependencyMissing = 17 // Required tool dependency not satisfied
)

Tool wrapper exit codes (10-19) - used by tool dispatch wrapper These overlap with component codes but have tool-specific meanings

Variables

This section is empty.

Functions

func IsToolExitCode

func IsToolExitCode(code int) bool

IsToolExitCode returns true if the exit code is in the tool wrapper range (10-19).

Types

This section is empty.

Jump to

Keyboard shortcuts

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