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 ¶
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.
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)
Click to show internal directories.
Click to hide internal directories.