Documentation
¶
Overview ¶
Package runner is the CLI scaffolding every compiled factory binary links into. The generated `main.go` stays tiny: it embeds the factory-specific constants and calls Run with them.
Index ¶
Constants ¶
const EnvVarPrefix = "UB_VAR_"
EnvVarPrefix is the prefix unobin reads input overrides from. An env var like `UB_VAR_cluster_name=web-prod` overrides the `cluster-name` input, with snake case converted to kebab case.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Format ¶
type Format string
Format is the wire form a subcommand emits. The text form is the existing human-facing rendering; json emits NDJSON envelopes (one per line); unobin emits the same envelope shape encoded as UB literals, one per line.
func ParseFormat ¶
ParseFormat resolves the value of the --output flag. An empty string maps to text so commands with the flag-default of "" pick up the same behavior as commands without the flag.
type Info ¶
type Info struct {
FactoryName string
FactoryVersion string
ContentRevision string
FactoryBody string
LibraryPath string
Libraries map[string]*runtime.Library
}
Info bundles everything a generated factory binary passes into Run. FactoryBody is the embedded factory source the binary parses on each invocation. LibraryPath is the binary's library-path identity (the same form Go libraries use); the operator's `config.ub` asserts the same value under `factory.library-path`. An empty LibraryPath disables that identity check.