layout

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package layout resolves and validates Aegis's per-operator filesystem layout.

Index

Constants

View Source
const (
	CanonicalDirectory   = ".argis"
	DevelopmentDirectory = ".aegis"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Discovery

type Discovery struct {
	Presence           Presence
	CanonicalArtifacts []string
	LegacyArtifacts    []string
}

type HomeResolver

type HomeResolver func() (string, error)

type Layout

type Layout struct {
	Home                  string
	Root                  string
	Config                string
	State                 string
	AuditCheckpoints      string
	CredentialDatabase    string
	HostKEK               string
	ManagerCertifications string
	ManagedModels         string
	Runtime               string
	LegacyConfig          string
	LegacyState           string
	LegacyCheckpoints     string
}

func (Layout) Discover

func (l Layout) Discover() (Discovery, error)

type Presence

type Presence string
const (
	None      Presence = "none"
	Canonical Presence = "canonical"
	Legacy    Presence = "legacy"
	Ambiguous Presence = "ambiguous"
)

type Resolver

type Resolver struct {
	Home HomeResolver
	EUID func() int
}

func New

func New() Resolver

func (Resolver) Resolve

func (r Resolver) Resolve() (Layout, error)

Jump to

Keyboard shortcuts

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