builtin

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Catalog

type Catalog struct {
	// contains filtered or unexported fields
}

Catalog implements ports.ContractCatalog over an immutable filesystem. The checksum inventory and every asset are validated once before reads succeed.

func NewCatalog

func NewCatalog() *Catalog

NewCatalog returns a catalog backed by the directly embedded runtime assets and the repository-root role document.

func (*Catalog) List

func (catalog *Catalog) List(ctx context.Context) ([]ports.AssetMetadata, error)

List returns every asset exactly once in ascending AssetID.String() order.

func (*Catalog) Read

func (catalog *Catalog) Read(ctx context.Context, id ports.AssetID) (ports.AssetMetadata, []byte, error)

Read returns validated metadata and a newly allocated caller-owned copy of the requested asset bytes.

Jump to

Keyboard shortcuts

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