Skip to main content

Module profile

Module profile 

Source
Expand description

Local profile lifecycle: list / info / lock-status / downloads / delete / prune.

Operates on disk only; never reaches over the network. Used by both the SDK consumer and the afhttp profile CLI subcommand.

Modules§

cookie_jar
Persistent cookie jar for the HTTP fast path.
info
SDK-side view of GET /profile. Re-exports [ProfileSnapshot] from shared so callers outside this module use the canonical type.
lock
Advisory profile-directory locking via fs2::FileExt::try_lock_exclusive. The lockfile lives at <profile>/afhttp-profile.lock and is held for the lifetime of the Guard; release happens on Drop. The owner’s PID lives in a sibling file afhttp-profile.pid so we can rewrite it atomically (rename-over) without invalidating the fs2 lock identity.
meta
afhttp-profile.json metadata file schema (architecture.md §7).
paths
Profile-root resolution + name validation.

Structs§

DownloadEntry
ProfileEntry
Top-level profile inventory entry from afhttp profile list.

Functions§

delete
downloads
info
list
lock_status
prune