manifest

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package manifest parses and persists the multiversa.toml declarative manifest.

Index

Constants

View Source
const DefaultPath = "multiversa.toml"

Variables

This section is empty.

Functions

func Save

func Save(path string, m *Manifest) error

Types

type Agents

type Agents struct {
	Enabled []string `toml:"enabled" json:"enabled"`
}

type Backend

type Backend struct {
	Provider string `toml:"provider" json:"provider"`
	URL      string `toml:"url,omitempty" json:"url,omitempty"`
	AnonKey  string `toml:"anon_key,omitempty" json:"-"`
}

type Credits

type Credits struct {
	AutoPrint bool `toml:"auto_print" json:"auto_print"`
}

type Manifest

type Manifest struct {
	Multiversa Meta              `toml:"multiversa" json:"multiversa"`
	Stack      map[string]string `toml:"stack" json:"stack"`
	Agents     Agents            `toml:"agents" json:"agents"`
	Backend    Backend           `toml:"backend" json:"backend"`
	Credits    Credits           `toml:"credits" json:"credits"`
}

func Default

func Default() *Manifest

func Load

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

func (*Manifest) Validate

func (m *Manifest) Validate() error

type Meta

type Meta struct {
	Profile string `toml:"profile" json:"profile"`
	Ethic   string `toml:"ethic" json:"ethic"`
	Version string `toml:"version" json:"version"`
}

Jump to

Keyboard shortcuts

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