commands

package
v0.49.5 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 131 Imported by: 0

Documentation

Overview

Package commands implements the CLI commands for stackkit.

Index

Constants

View Source
const (
	ExitCodeHostSecurityDrift   = 5
	ExitCodeHostSecurityUnknown = 6
)

ExitCodeHostSecurityDrift and ExitCodeHostSecurityUnknown are returned by `host security verify --fail-on-drift`, so a script can tell a drifted host from one whose state could not be established. They are opt-in: by default a verification that produced evidence exits 0 and the evidence carries the verdict.

View Source
const ExitCodeHostBlocked = 3

ExitCodeHostBlocked is returned when host admission refused to mutate the target. It is distinct from a general failure so an installer or orchestrator can tell "this device cannot run the kit" from "the rollout broke".

View Source
const ExitCodeHostUpdateRunning = 4

ExitCodeHostUpdateRunning is returned when `host updates apply` stopped waiting while its update unit keeps running. Refusals exit with ExitCodeHostBlocked (3): nothing on the host changed.

Variables

This section is empty.

Functions

func Execute

func Execute() error

Execute runs the root command

func ExitCode

func ExitCode(err error) int

ExitCode reports the process exit code an Execute error should produce. An error without an explicit code is an ordinary failure.

func SetProgramName

func SetProgramName(name string)

SetProgramName lets the explicitly tagged publisher entry point present a distinct executable identity while sharing command implementations.

func SetVersionInfo

func SetVersionInfo(v, gc, bd string)

SetVersionInfo sets version information from build

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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