domainop

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Overview

Package domainop owns configured-domain mutation, authored scaffold, synchronization, and orphan inspection.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaseAcquirer added in v0.50.0

type LeaseAcquirer func(context.Context, string) (*filesystem.Lease, func() error, error)

LeaseAcquirer is the narrow mechanism seam used by focused lease tests.

type Outcome added in v0.41.0

type Outcome struct {
	ConfigReplaced, ScaffoldCreated, Orphaned bool
	Publisher                                 publisher.Result
}

Outcome retains visible domain and publication facts even on an ordinary error.

func Add

func Add(ctx context.Context, root, name string, loader *project.Loader, acquire LeaseAcquirer) (outcome Outcome, returnErr error)

Add configures name, creates its initial current-state part, reloads authority, and synchronizes once under a complete project lease.

func Remove

func Remove(ctx context.Context, root, name string, loader *project.Loader, acquire LeaseAcquirer) (outcome Outcome, returnErr error)

Remove unconfigures name, synchronizes once, and reports remaining authored inputs.

func (Outcome) Document added in v0.41.0

func (o Outcome) Document() (presentation.Document, error)

Jump to

Keyboard shortcuts

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