config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0, MIT Imports: 14 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindProjectRoot

func FindProjectRoot() (string, error)

FindProjectRoot walks up from the current working directory to find the repository root.

func FindProjectRootFrom

func FindProjectRootFrom(startPath string) (string, error)

FindProjectRootFrom finds the repository root starting from startPath.

Types

type Config

type Config struct {
	// RunRoot selects the default parent directory for generated run evidence.
	// An empty value requires commands that create evidence to request an output
	// location explicitly.
	RunRoot string `yaml:"run_root"`

	// Source identifies whether a default, file, or environment-selected
	// configuration was loaded. It deliberately does not retain a potentially
	// sensitive path.
	Source string `yaml:"-"`
}

Config is the process-level configuration. Workload packs, profiles, and evidence directories remain explicit command inputs rather than implicit global settings.

func LoadConfig

func LoadConfig(ctx context.Context, identity *appidentity.Identity, logger *logging.Logger) (*Config, error)

LoadConfig combines typed defaults, a confined optional file, and explicitly declared runtime overrides. The merge and environment parsing use gofulmen's configuration primitives; file reads remain locally confined so an operator supplied path cannot redirect through a final symlink.

Jump to

Keyboard shortcuts

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