Documentation
¶
Overview ¶
Package authoringop owns semantic part resolution, complete candidate validation, confined source publication, and ordinary leased synchronization.
Index ¶
- func ResolvePart(state *project.Session, cfg *config.Config, kind, name, part string) (project.AuthoringTarget, error)
- func ResolveSidecar(state *project.Session, cfg *config.Config, kind, name, field string) (project.AuthoringTarget, error)
- type LeaseAcquirer
- type Mode
- type Outcome
- type Request
- type SourceEffect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolvePart ¶
func ResolvePart(state *project.Session, cfg *config.Config, kind, name, part string) (project.AuthoringTarget, error)
ResolvePart delegates semantic kind, catalog/configured name, and capability resolution to the project and configuration authorities.
func ResolveSidecar ¶
Types ¶
type LeaseAcquirer ¶
LeaseAcquirer is the narrow mechanism seam used by focused lease tests.
type Outcome ¶
type Outcome struct {
Kind, Name, Part string
SourcePath string
Source SourceEffect
CreatedParents []string
Publisher publisher.Result
}
Outcome retains visible source and publication facts even when Run returns an error.
type Request ¶
type Request struct {
Mode Mode
Kind, Name, Part string
Content []byte
Sidecar bool
SidecarMode string
Value any
}
Request identifies one semantic part. Content is meaningful only for Edit; its empty value is a valid explicit authored override.
type SourceEffect ¶
type SourceEffect string
SourceEffect identifies the authored source effect that committed.
const ( SourceNone SourceEffect = "none" SourceCreated SourceEffect = "created" SourceReplaced SourceEffect = "replaced" SourceRemoved SourceEffect = "removed" SourceLocalBody SourceEffect = "local-body-replaced" )
Click to show internal directories.
Click to hide internal directories.