environment

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package environment is the adapter for the configuration port: it reads HUBTASK_* variables.

A configuration error is a typed error with a message code, not a sentence (ADR-0011). The operator still gets something readable, because the code and its parameters name the variable - but a UI can translate it, and a test can assert on it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvConfig

type EnvConfig struct {
	// contains filtered or unexported fields
}

func New

func New(version, commit string) *EnvConfig

func (*EnvConfig) Load

func (e *EnvConfig) Load() (env.Config, error)

func (*EnvConfig) Warnings

func (e *EnvConfig) Warnings(cfg env.Config) []env.Warning

Warnings reports what the installation is missing without it being an error. These codes appear in /meta/health (ADR-0016) and are translatable on the client side.

Jump to

Keyboard shortcuts

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