39 const
std::filesystem::path&
root() const noexcept;
49 std::unique_ptr<Impl> impl_;
Bounded, deterministic capsule archive access.
A reader over an admitted archive.
Definition archive.hpp:37
A private directory that is removed when it goes out of scope unless it was published.
Definition staging.hpp:29
static runtime::Result< StagingArea, CapsuleError > create(const std::filesystem::path &parent)
runtime::Result< void, CapsuleError > publish_no_replace(const std::filesystem::path &destination)
Rename the staged tree to destination, which must not exist.
StagingArea(StagingArea &&) noexcept
const std::filesystem::path & root() const noexcept
Result<T, E> — either holds a T or an E, never both.
Definition result.hpp:76
The capsule envelope: the only authority for what a capsule is.
Definition archive.hpp:24
runtime::Result< std::vector< std::uint8_t >, CapsuleError > read_staged_member(const StagingArea &staging, const FileEntry &entry)
Read one member back out of a staged tree.
runtime::Result< void, CapsuleError > extract_declared(const CapsuleArchive &archive, const Manifest &manifest, const StagingArea &staging, const ExtractionProgress &progress={})
Extract only the members the manifest declares, verifying each digest as it lands.
std::function< bool(std::size_t member_index, std::size_t member_count)> ExtractionProgress
Progress and cancellation.
Definition staging.hpp:54
Definition generated_event_source.hpp:33
Result<T, E> — success / failure union for fallible operations.
Admission failure vocabulary for authoring capsules.
A rejection with the exact subject that caused it.
Definition status.hpp:69
One row of the archive closure.
Definition component.hpp:110
Definition manifest.hpp:47