config

package
v0.2.5 Latest Latest
Warning

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

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

Documentation

Overview

Package config loads and validates nodeexec process configuration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Bind               string
	Token              string
	NodeID             string
	Workspace          string
	RevisionRoot       string
	RevisionMaxEntries int64
	RevisionMaxBytes   int64
	SourceRemote       string
	SourceRepository   string
	SourceFetchTimeout time.Duration
	StateFile          string
	DockerBin          string
	DryRun             bool
}

Config is the complete runtime configuration.

func Load

func Load(getenv func(key string) string) (Config, error)

Load reads configuration from getenv and applies safe defaults.

func (Config) Validate

func (c Config) Validate() error

Validate rejects unsafe network and filesystem configuration.

Jump to

Keyboard shortcuts

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