config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: BSD-3-Clause Imports: 5 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

Overview

Package config parses weft-loom's HCL configuration file. Mirrors the openweft convention (cluster.hcl / weft-firstboot / weft-doctor).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// Listen is the bind address (e.g. ":8080"). Default :8080.
	Listen string
	// StorageRoot is where project files land. With PostgresDSN set,
	// this is the shared weft-block volume mount path ; without it,
	// LocalStore uses it as the local-FS root.
	StorageRoot string
	// PostgresDSN, when non-empty, switches the project store from
	// LocalStore to PostgresStore. Metadata + ACL live in the DB
	// (replicated by weft-ha-postgresql) ; file content stays on
	// StorageRoot (a shared weft-block volume across all loom-server
	// replicas).
	PostgresDSN string
	// OIDC issuer URL (dex). Empty = dev mode (auth disabled).
	OIDCIssuer string
	// OIDC client ID registered with dex.
	OIDCClientID string
	// CompileTimeout is the per-job cap. Default 5 min.
	CompileTimeout time.Duration
	// WeftAgentSocket is the path to weft-agent's unix socket the
	// compile service dials to spawn microVMs. Empty = simulated
	// compile (V0.1 default).
	WeftAgentSocket string
}

Config is the parsed configuration.

func Load

func Load(path string) (Config, error)

Load parses + validates the file.

Jump to

Keyboard shortcuts

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