project

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MPL-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package project loads project-level compiler configuration.

Index

Constants

View Source
const DefaultConfigFile = "gowdk.config.go"

DefaultConfigFile is the config file discovered from a project root.

Variables

This section is empty.

Functions

func LoadConfig added in v0.1.5

func LoadConfig(path string) (gowdk.Config, error)

LoadConfig loads an explicitly requested config file, or the required default config file when no path is provided.

func LoadConfigFile

func LoadConfigFile(path string) (gowdk.Config, error)

LoadConfigFile reads the supported SPA subset of gowdk.config.go.

func LoadConfigFileStructural added in v0.12.0

func LoadConfigFileStructural(path string) (gowdk.Config, error)

LoadConfigFileStructural loads a project configuration while validating only schema and compiler-facing policy. Required runtime values are deliberately checked later by generated-app startup or ValidateRuntimeEnvironment.

func LoadConfigFileStructuralWithEnvironment added in v0.13.0

func LoadConfigFileStructuralWithEnvironment(path string, environment []string) (gowdk.Config, error)

LoadConfigFileStructuralWithEnvironment loads config with an explicit child process environment. It never mutates the compiler process environment.

func LoadConfigStructural added in v0.12.0

func LoadConfigStructural(path string) (gowdk.Config, error)

LoadConfigStructural loads an explicit config or the required default config without requiring deployment environment values to exist in the CLI process.

func ValidateRuntimeEnvironment added in v0.12.0

func ValidateRuntimeEnvironment(config gowdk.Config, lookup func(string) (string, bool)) error

ValidateRuntimeEnvironment checks required runtime variables and secret minimums against the provided value lookup. Passing nil performs only the structural checks used during config loading.

Types

type ExecutableBridgeError added in v0.13.0

type ExecutableBridgeError struct {
	Code    string
	Method  string
	Message string
	Cause   error
}

ExecutableBridgeError is a stable, code-addressable failure returned by the versioned executable config/extension host.

func (*ExecutableBridgeError) Error added in v0.13.0

func (err *ExecutableBridgeError) Error() string

func (*ExecutableBridgeError) Unwrap added in v0.13.0

func (err *ExecutableBridgeError) Unwrap() error

Jump to

Keyboard shortcuts

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