Versions in this module Expand all Collapse all v0 v0.2.1 Sep 26, 2026 v0.2.0 Sep 22, 2026 Changes in this version + var ErrAmbiguousModule = errors.New("ambiguous module reference") + var ErrCircularDependency = errors.New("circular module dependency") + var ErrDependencyVersionMismatch = errors.New("module dependency version mismatch") + var ErrDowngradeNotAllowed = errors.New("module downgrade not allowed") + var ErrInvalidManifest = errors.New("invalid module manifest") + var ErrManifestNotFound = errors.New("module manifest not found") + var ErrMissingDependency = errors.New("missing module dependency") + var ErrModuleFileTooLarge = errors.New("module file is too large") + var ErrModuleInUse = errors.New("module is required by another installed module") + var ErrModuleNotFound = errors.New("module not found") + var ErrModuleSignatureInvalid = errors.New("invalid module signature") + var ErrModuleSignatureMissing = errors.New("module signature missing") + var ErrResourceTypeInUse = errors.New("resource type still has persisted resources") + var ErrUpgradeWouldRemove = errors.New("upgrade would remove previously declared resources or definitions") + func LoadDefinitionsFromIG(dir string) ([][]byte, error) + func ManifestToMetadata(manifest Manifest) (map[string]string, error) + func ModuleSigningDigest(module Module) []byte + type CapabilitySnapshotBuilder struct + func NewCapabilitySnapshotBuilder(modules store.ModuleStore, installs store.RegistryInstallStore) *CapabilitySnapshotBuilder + func (b *CapabilitySnapshotBuilder) Build(ctx context.Context) ([]InstalledModule, error) + type Config struct + Authorizer InstallAuthorizer + DefinitionStore store.DefinitionStore + ModuleStore store.ModuleStore + Now func() time.Time + RegistryInstallStore store.RegistryInstallStore + RegistryManager *registry.Manager + ResourceStore store.ResourceStore + Verifier ModuleVerifier + type Declarations struct + AITools []string + Migrations []string + Permissions []string + Subscriptions []string + SyncPolicies []string + Views []string + type DefinitionRef struct + CanonicalURL string + Version string + type DependencyRef struct + Name string + Version string + type DependencyResolver struct + func NewDependencyResolver(modules store.ModuleStore) *DependencyResolver + func (r *DependencyResolver) Resolve(ctx context.Context, mod *Module) error + type Ed25519ModuleVerifier struct + PublicKey ed25519.PublicKey + SignaturePath string + func (v Ed25519ModuleVerifier) VerifyModule(ctx context.Context, module Module) error + type InstallAuthRequest struct + Action string + Module Module + Path string + Plan *Plan + type InstallAuthorizer interface + AuthorizeModuleInstall func(ctx context.Context, req InstallAuthRequest) error + type InstallAuthorizerFunc func(ctx context.Context, req InstallAuthRequest) error + func (f InstallAuthorizerFunc) AuthorizeModuleInstall(ctx context.Context, req InstallAuthRequest) error + type InstallResult struct + Action string + Deferred Declarations + EnabledResources []string + InstalledDefinitions []DefinitionRef + Name string + Snapshot *registry.Snapshot + Version string + type InstallWorker struct + DefaultTerminologyTenantID string + Manager *Manager + Store store.JobStore + TerminologyInstalls store.TerminologyInstallStoreFactory + func (w *InstallWorker) HandleJob(ctx context.Context, job store.JobRecord) error + type InstalledModule struct + Deferred Declarations + Definitions []DefinitionRef + Dependencies []DependencyRef + Name string + RegisteredAt time.Time + Resources []string + Version string + type Installer struct + OnProgress ProgressFunc + func NewInstaller(modules store.ModuleStore, defs store.DefinitionStore, ...) *Installer + func NewInstallerWithResources(modules store.ModuleStore, defs store.DefinitionStore, ...) *Installer + func (i *Installer) Install(ctx context.Context, mod *Module) (*InstallResult, error) + func (i *Installer) PlanInstall(ctx context.Context, mod *Module) (*Plan, error) + func (i *Installer) Uninstall(ctx context.Context, name string) error + func (i *Installer) Upgrade(ctx context.Context, mod *Module) (*UpgradeResult, error) + type Loader struct + func NewLoader() *Loader + func (l *Loader) Load(path string) (*Module, error) + type Manager struct + func NewManager(cfg Config) *Manager + func (m *Manager) Inspect(ctx context.Context, name string) (*InstalledModule, error) + func (m *Manager) Install(ctx context.Context, path string) (InstallResult, error) + func (m *Manager) InstallAll(ctx context.Context, paths ...string) error + func (m *Manager) InstallWithProgress(ctx context.Context, path string, progress ProgressFunc) (InstallResult, error) + func (m *Manager) List(ctx context.Context) ([]InstalledModule, error) + func (m *Manager) PlanInstall(ctx context.Context, path string) (*Plan, error) + func (m *Manager) SetAfterChange(fn func(ctx context.Context) error) + func (m *Manager) Uninstall(ctx context.Context, name string) error + func (m *Manager) Upgrade(ctx context.Context, path string) (UpgradeResult, error) + func (m *Manager) UpgradeWithProgress(ctx context.Context, path string, progress ProgressFunc) (UpgradeResult, error) + type Manifest struct + AITools []string + DefinitionFiles []string + Dependencies []DependencyRef + Description string + IGPackage string + Migrations []string + Name string + Permissions []string + Resources []string + Subscriptions []string + SyncPolicies []string + Version string + Views []string + type Module struct + DefinitionPaths []string + Definitions [][]byte + Manifest Manifest + ManifestBytes []byte + Path string + type ModuleVerifier interface + VerifyModule func(ctx context.Context, module Module) error + type ModuleVerifierFunc func(ctx context.Context, module Module) error + func (f ModuleVerifierFunc) VerifyModule(ctx context.Context, module Module) error + type Plan struct + Action string + Deferred Declarations + DefinitionsToInstall []DefinitionRef + DefinitionsToRemove []DefinitionRef + Dependencies []DependencyRef + Name string + ResourcesToEnable []string + Version string + type ProgressFunc func(current, total int, message string) + type RegistryApplier struct + func NewRegistryApplier(reg *registry.Manager, defs store.DefinitionStore, ...) *RegistryApplier + func (a *RegistryApplier) CompletePackageInstall(ctx context.Context, provenance registry.InstallProvenance) error + func (a *RegistryApplier) DefinitionStore() store.DefinitionStore + func (a *RegistryApplier) DeleteDefinition(ctx context.Context, canonicalURL, version string) error + func (a *RegistryApplier) DeleteInstall(ctx context.Context, filter store.RegistryInstallFilter) error + func (a *RegistryApplier) DisableResource(ctx context.Context, resourceType string) error + func (a *RegistryApplier) EnableResource(ctx context.Context, resourceType string) error + func (a *RegistryApplier) InstallDefinition(ctx context.Context, jsonData []byte, provenance registry.InstallProvenance) error + func (a *RegistryApplier) InstallStore() store.RegistryInstallStore + func (a *RegistryApplier) RebuildSnapshot(ctx context.Context) (*registry.Snapshot, error) + func (a *RegistryApplier) SeedBundled(ctx context.Context) error + type UpgradeResult struct + Deferred Declarations + EnabledResources []string + InstalledDefinitions []DefinitionRef + Name string + NewVersion string + OldVersion string + RemovedDefinitions []DefinitionRef + Snapshot *registry.Snapshot