Skip to main content

Module sync_engine

Module sync_engine 

Source

Structs§

ReplaceRefused
A write was refused because the target is not ours to destroy.

Enums§

ReplacePolicy
What the caller is authorized to destroy at the target.
SyncMode
TargetState
What is actually sitting at a deployment target right now.

Functions§

classify_target
Classify what is at target without following links.
is_target_current
matches_recorded_deployment
Whether what is at target is still consistent with a deployment recorded as recorded_mode. false means something else took the path over, which is why an undeploy may leave a path behind on purpose.
preflight_replace
Whether sync_skill would be allowed to write here, without touching anything. For batch callers that must refuse the whole operation before mutating any of it (#363, expectation 4).
refusal_message
The one place this refusal is worded. ReplaceRefused and the TargetConflict that carries it out to callers both render through here so the two cannot drift apart.
remove_classified_target
Remove a target that was already classified, using an operation that only works on that kind of object.
remove_recorded_target
Remove a deployment target only while what is on disk still matches the deployment we recorded. Returns false when the object was preserved because it no longer does.
remove_recorded_target_or_warn
Row-driven removal for cleanup paths: remove only while the disk still matches the record, and report a preserved replacement instead of falling back to remove_target. Every caller that deletes what a skill_targets row points at should go through here (or remove_recorded_target) — a row is a statement about the past, never proof that whatever is on disk is ours (#363 expectation 5, #435).
remove_target
Unconditional removal of whatever is at target.
sync_mode_for_tool
sync_skill
target_dir_name