Skip to main content

Module syncs

Module syncs 

Source
Expand description

Sync DTOs.

Wire types for the sync CRUD + diff/apply endpoints. A sync resource points at a directory within a project’s git checkout that contains ZLayer resource YAMLs. The diff endpoint scans the directory and reports what would change; the apply endpoint actually reconciles.

Structs§

CreateSyncRequest
Body for POST /api/v1/syncs.
SyncApplyResponse
Response for a real apply. Reports per-resource outcomes, the current commit SHA the sync was applied at (when known), and a short human-readable summary for CLI display.
SyncDiffResponse
JSON-friendly wrapper around the sync diff output.
SyncResourceResponse
A single resource in the diff output.
SyncResourceResult
Result of reconciling a single resource during apply.