Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Envelope ¶
type Envelope struct {
DeviceID string `json:"deviceId"`
DeviceName string `json:"deviceName,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
Settings json.RawMessage `json:"settings"`
}
Envelope is the on-disk + wire shape. JSON tags match iOS's BackupEnvelope Codable; `Settings` is a json.RawMessage so the daemon never parses it.
type Meta ¶
type Meta struct {
DeviceID string `json:"deviceId"`
DeviceName string `json:"deviceName,omitempty"`
UpdatedAt time.Time `json:"updatedAt"`
}
Meta is the list-row form (no settings blob). Matches iOS's BackupMeta.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is the per-device backup store. Filesystem-backed (one file per device under dir/), goroutine-safe via a single mutex.
func New ¶
New constructs the store, creating dir if missing. Returns error if dir can't be created (read-only fs, permission denied).
Click to show internal directories.
Click to hide internal directories.