Documentation
¶
Overview ¶
Package authoringop owns semantic part resolution, complete candidate validation, confined source publication, and ordinary leased synchronization.
Index ¶
- func ResolvePart(state *project.ProjectState, cfg *config.Config, kind, name, part string) (project.AuthoringTarget, error)
- func ResolveSidecar(state *project.ProjectState, cfg *config.Config, kind, name, field string) (project.AuthoringTarget, error)
- type LeaseAcquirer
- type Mode
- type Outcome
- type PartialError
- type Request
- type SourceEffect
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResolvePart ¶
func ResolvePart(state *project.ProjectState, 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 ¶
func ResolveSidecar(state *project.ProjectState, cfg *config.Config, kind, name, field string) (project.AuthoringTarget, error)
Types ¶
type LeaseAcquirer ¶
LeaseAcquirer is the narrow operation dependency used to retain the complete project lease and directly inject release faults without mutable globals.
type Outcome ¶
type Outcome struct {
Kind, Name, Part string
SourcePath string
Source SourceEffect
CreatedParents []string
Residue []string
Publisher publisher.Result
}
Outcome retains authoring-owned source/setup effects separately from the Publisher-owned synchronization result.
type PartialError ¶
PartialError retains every committed axis and the original typed cause.
func AsPartial ¶
func AsPartial(err error) (*PartialError, bool)
AsPartial returns a retained partial outcome when err carries one.
func (*PartialError) Document ¶
func (e *PartialError) Document() (presentation.Document, error)
Document maps a typed partial result to residue-first recovery guidance.
func (*PartialError) Error ¶
func (e *PartialError) Error() string
func (*PartialError) Unwrap ¶
func (e *PartialError) Unwrap() error
type Request ¶
type Request struct {
Mode Mode
Kind, Name, Part string
Content []byte
// Sidecar selects a configuration-owned sidecar leaf. SidecarMode is value,
// add, remove, or reset; Value is already typed by the CLI boundary.
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" )