Documentation
¶
Overview ¶
Package archive is the audit safety net for bidirectional sync. Before abctl overwrites or deletes any live configuration, it downloads the current live version and files it here — so every live state that was ever replaced leaves a permanent, greppable record. Git already versions git-side edits; this captures the *console* side that a conflict-loss or prune would otherwise erase.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Write ¶
func Write(root, name, reason string, xml []byte, meta map[string]string, now time.Time) (string, error)
Write files a pre-overwrite live profile under
<root>/<name>/<UTC-timestamp>--<reason>.mobileconfig
alongside a matching .json sidecar recording the metadata (name, reason, archivedAt, plus any extra fields in meta). It returns the path of the written .mobileconfig. name and reason are sanitized for the filesystem; the on-disk name stays human-readable. now is injected for deterministic testing.
Types ¶
This section is empty.