domainop

package
v0.41.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: AGPL-3.0 Imports: 10 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 Outcome added in v0.41.0

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

Outcome is the complete observed state of a domain mutation. Publisher remains the publication owner; this operation owns config and authored-source facts.

func AddLeased added in v0.41.0

func AddLeased(ctx context.Context, root, name string, loader *project.Loader, lease *filesystem.Lease) (outcome Outcome, err error)

AddLeased configures name, creates its initial current-state part, and synchronizes under a caller-held complete project transaction.

func RemoveLeased added in v0.41.0

func RemoveLeased(ctx context.Context, root, name string, loader *project.Loader, lease *filesystem.Lease) (outcome Outcome, err error)

RemoveLeased unconfigures name, synchronizes, and reports whether authored domain inputs remain orphaned under a caller-held complete project transaction.

func (Outcome) Document added in v0.41.0

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

type PartialError added in v0.41.0

type PartialError struct {
	Outcome  Outcome
	Cause    error
	Recovery []string
}

PartialError retains every committed domain effect and the original cause.

func (*PartialError) Document added in v0.41.0

func (e *PartialError) Document() (presentation.Document, error)

func (*PartialError) Error added in v0.41.0

func (e *PartialError) Error() string

func (*PartialError) Unwrap added in v0.41.0

func (e *PartialError) Unwrap() error

Jump to

Keyboard shortcuts

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