Documentation
¶
Index ¶
Constants ¶
View Source
const ( OpFrontmatterSet = "frontmatter_set" OpFrontmatterUnset = "frontmatter_unset" OpFrontmatterMerge = "frontmatter_merge" OpGeneratedRegion = "generated_region_render" OpNoteCreate = "note_create" )
Variables ¶
View Source
var KnownOps = map[string]bool{ OpFrontmatterSet: true, OpFrontmatterUnset: true, OpFrontmatterMerge: true, OpGeneratedRegion: true, OpNoteCreate: true, }
Functions ¶
This section is empty.
Types ¶
type ApplyResult ¶
type Executor ¶
type Executor struct {
VaultPath string
Detector git.RepoStateDetector
Checker *git.PolicyChecker
Committer *git.Committer
Registry *schema.Registry
Config *vault.Config
}
Executor orchestrates plan execution: validate, git policy check, execute ops in order, rollback on failure, optional batch commit.
type OpResult ¶
type Operation ¶
type Operation struct {
Op string `json:"op"`
Target string `json:"target,omitempty"`
Key string `json:"key,omitempty"`
Value interface{} `json:"value,omitempty"`
Fields map[string]interface{} `json:"fields,omitempty"`
SectionKey string `json:"section_key,omitempty"`
Template string `json:"template,omitempty"`
Path string `json:"path,omitempty"`
Type string `json:"type,omitempty"`
Frontmatter map[string]interface{} `json:"frontmatter,omitempty"`
Body string `json:"body,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.