Documentation
¶
Overview ¶
Package velox defines configuration types and validation used by Velox builds.
Index ¶
Constants ¶
const ( // RefKey, LogLevelKey, and LogModeKey are the velox.toml keys of the Roadrunner and Log maps. RefKey = "ref" LogLevelKey = "level" LogModeKey = "mode" )
Variables ¶
var ErrWindowsTarget = errors.New("velox v3 does not support Windows targets")
Functions ¶
func IsLocalPath ¶
IsLocalPath reports whether s denotes a local filesystem path, using the predicate `go mod edit -replace` applies to its operand.
func ValidateRef ¶
ValidateRef rejects refs carrying characters that are unsafe in the unquoted -ldflags value.
func ValidateTargetOS ¶
ValidateTargetOS rejects target operating systems that velox v3 does not support.
Types ¶
type Config ¶
type Config struct {
Roadrunner map[string]string `mapstructure:"roadrunner"`
Debug *Debug `mapstructure:"debug"`
Log map[string]string `mapstructure:"log"`
TargetPlatform *TargetPlatform `mapstructure:"target_platform"`
GitHub *GitHub `mapstructure:"github"`
Plugins map[string]*Plugin `mapstructure:"plugins"`
Replaces []Replace `mapstructure:"replaces"`
Excludes []Exclude `mapstructure:"excludes"`
}
type Exclude ¶
type Exclude struct {
Module string `mapstructure:"module"`
Version string `mapstructure:"version"`
}
Exclude mirrors `exclude module version` in go.mod.
type Replace ¶
Replace mirrors `replace old => new` in go.mod, with the version embedded inline as "module@v1.2.3".
type TargetPlatform ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package builder assembles a custom RoadRunner binary from the downloaded source tree and the user plugin set.
|
Package builder assembles a custom RoadRunner binary from the downloaded source tree and the user plugin set. |
|
templates
Package templates renders the generated container/plugins.go that registers the RoadRunner plugins.
|
Package templates renders the generated container/plugins.go that registers the RoadRunner plugins. |
|
cmd
|
|
|
vx
command
Package main provides the vx CLI entrypoint.
|
Package main provides the vx CLI entrypoint. |
|
Package github downloads and extracts the RoadRunner source tree from a GitHub tag, branch, or commit SHA.
|
Package github downloads and extracts the RoadRunner source tree from a GitHub tag, branch, or commit SHA. |
|
internal
|
|
|
cli
Package cli wires the root cobra command and shared CLI setup.
|
Package cli wires the root cobra command and shared CLI setup. |
|
cli/build
Package build implements the `vx build` subcommand that downloads RoadRunner and produces a custom binary.
|
Package build implements the `vx build` subcommand that downloads RoadRunner and produces a custom binary. |
|
version
Package version exposes build-time version and timestamp helpers.
|
Package version exposes build-time version and timestamp helpers. |
|
Package logger builds the *slog.Logger used by the CLI in production, development, raw, or none mode.
|
Package logger builds the *slog.Logger used by the CLI in production, development, raw, or none mode. |
|
Package plugin describes a RoadRunner plugin entry and how it renders into the generated container/plugins.go.
|
Package plugin describes a RoadRunner plugin entry and how it renders into the generated container/plugins.go. |