config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMissingOutputDir = errors.New("missing required field: server.output_dir")
View Source
var ErrMissingSandboxBuildContext = errors.New("missing required field: sandbox.build_context")
View Source
var ErrMissingSandboxDockerfile = errors.New("missing required field: sandbox.dockerfile")
View Source
var ErrMissingSandboxImage = errors.New("missing required field: sandbox.image")

Functions

This section is empty.

Types

type AllowPatternsConfig

type AllowPatternsConfig struct {
	Patterns []string `toml:"patterns"`
}

type ClaudeConfig

type ClaudeConfig struct {
	YoloSettings string `toml:"yolo_settings"`
}

type Config

type Config struct {
	Server        ServerConfig        `toml:"server"`
	Sandbox       SandboxConfig       `toml:"sandbox"`
	AllowPatterns AllowPatternsConfig `toml:"allow_patterns"`
	DenyPatterns  DenyPatternsConfig  `toml:"deny_patterns"`
	Container     ContainerConfig     `toml:"container"`
	Nono          NonoConfig          `toml:"nono"`
	Claude        ClaudeConfig        `toml:"claude"`
}

func Load

func Load(path string) (*Config, error)

type ContainerConfig

type ContainerConfig struct {
	EnvPassthrough []string `toml:"env_passthrough"`
}

type DenyPatternsConfig

type DenyPatternsConfig struct {
	Patterns []string `toml:"patterns"`
}

type NonoConfig

type NonoConfig struct {
	Config     string `toml:"config"`
	YoloConfig string `toml:"yolo_config"`
	OutputDir  string `toml:"output_dir"`
}

type SandboxConfig

type SandboxConfig struct {
	BuildContext    string   `toml:"build_context"`
	Dockerfile      string   `toml:"dockerfile"`
	Image           string   `toml:"image"`
	AllowCIDRs      []string `toml:"allow_cidrs"`
	AllowHosts      []string `toml:"allow_hosts"`
	ExternalNetwork string   `toml:"external_network"`
}

type ServerConfig

type ServerConfig struct {
	OutputDir string `toml:"output_dir"`
}

Jump to

Keyboard shortcuts

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