Documentation
¶
Overview ¶
Package tenant manages isolated tenant profiles under ~/.multiversa/tenants/<slug>/. One tenant = one manifest (the brand DNA) + one vault (0700, never read by any Multiversa surface) + one memory/graph home. Switching tenants swaps the whole context safely: nothing from one tenant's dir is ever read while another is active.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New scaffolds a tenant profile from a template. It never overwrites: an existing tenant dir is an error, keeping profiles append-only.
Layout created:
~/.multiversa/tenants/<slug>/ multiversa.toml the tenant's DNA (template pre-filled) vault/ 0700 — secrets live here, never serialized graph/ knowledge graph home (anchored to identity) memory/ Engram home for this tenant
Types ¶
type Info ¶
type Info struct {
Slug string `json:"slug"`
Name string `json:"name,omitempty"`
Kind string `json:"kind,omitempty"`
Owner string `json:"owner,omitempty"`
Dir string `json:"dir"`
Active bool `json:"active"`
VaultOK bool `json:"vault_ok"` // vault dir exists with 0700
Manifest bool `json:"manifest"` // multiversa.toml present and parseable
}
Info is the JSON-safe view of a tenant profile. Vault contents are never included — only the path and whether the layout is intact.
Click to show internal directories.
Click to hide internal directories.