domainop

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 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

func Finish added in v0.46.0

func Finish(outcome Outcome, operationErr, releaseErr error) error

Finish retains committed domain effects when presentation cleanup or the caller-held lease release fails after the focused mutation returns.

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 Add

func Add(_ context.Context, name string, tx *projectmutation.Transaction) (outcome Outcome, err error)

Add configures name, creates its initial current-state part, and synchronizes under the caller's complete project transaction.

func Remove

func Remove(_ context.Context, name string, tx *projectmutation.Transaction) (outcome Outcome, err error)

Remove unconfigures name, synchronizes, and reports whether authored domain inputs remain orphaned under the caller's 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 {
	projectmutation.Partial[Outcome]
}

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)

Jump to

Keyboard shortcuts

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