archive

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 6, 2026 License: AGPL-3.0 Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL