Help us shape the future of Go! Take the 2026 Go Developer Survey

layouts

package
v2.219.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package layouts loads the harness load-point table, so no harness name lives in Go. The default is layouts.yaml, and AGENT_COMPOSE_LAYOUTS names a file that replaces it whole. See docs/projection.md.

Index

Constants

View Source
const Env = "AGENT_COMPOSE_LAYOUTS"

Env names the replacement table, which a deployment mounts to own the harness set.

Variables

This section is empty.

Functions

func Load

func Load() (map[string]Harness, error)

Load reads the replacement table when Env names one, else the default.

func Names

func Names(table map[string]Harness) []string

Names returns the harness names sorted, so diagnostics are stable.

func Parse

func Parse(raw []byte, source string) (map[string]Harness, error)

Parse decodes a table strictly and rejects a load point that escapes its root.

Types

type Harness

type Harness struct {
	Cascade bool   `yaml:"cascade"`
	Repo    Layout `yaml:"repo"`
	Home    Layout `yaml:"home"`
}

type Layout

type Layout struct {
	Native   *LoadPoints `yaml:"native"`
	Compiled *LoadPoints `yaml:"compiled"`
}

Layout declares load points per delivery mode. A nil mode is unsupported.

type LoadPoints

type LoadPoints struct {
	Instructions string `yaml:"instructions"`
	SkillsDir    string `yaml:"skills"`
}

Jump to

Keyboard shortcuts

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