abla/xtensa/companion

Generated from source.

Import with import "abla/xtensa/companion".

Source: abla/xtensa/companion/entry.ab

CompanionPins (class)

class CompanionPins(
    val version: string,
    val platform: string,
    val llvmVersion: string,
    val sourceCommit: string,
    val sourceArchiveSha256: string,
    val archiveSha256: string,
    val manifestSha256: string
)

Stores the companion and LLVM versions, platform, source commit and expected SHA-256 digests.

CompanionArchiveResult (class)

class CompanionArchiveResult(val archive: TarReadResult, val manifest: Json, val error: string)

Carries the verified archive and its manifest, or an error if validation failed.

companionValidateArchive (fun)

fun companionValidateArchive(compressed: string, pins: CompanionPins): CompanionArchiveResult

Archive and manifest pins must already come from the validated catalog.

CompanionVerifyResult (class)

class CompanionVerifyResult(val error: string)

Carries the verification error, with an empty string on success.

verifyCompanion (fun)

fun verifyCompanion(directory: SecureDirectory, pins: CompanionPins): CompanionVerifyResult

0700 is the marker for a publish that has not reached its final chmod. A crashed publisher is never repaired or removed by verification.

CompanionExtractResult (class)

class CompanionExtractResult(val error: string, val existing: bool, val leftoverStage: string = "",
    val operation: string = "", val errorNumber: int = 0, val leftoverSpool: string = "",
    val cause: string = "")

Reports installation or reuse of an existing tree, with failure details and any artifacts left behind.

extractCompanion (fun)

fun extractCompanion(parent: SecureDirectory, archiveFile: SecureFile,
    pins: CompanionPins): CompanionExtractResult

Offline only; parent is the trusted managed directory next to the final version. This function does not run helper executables or activate a link.

extractSpooledCompanionChecked (fun)

fun extractSpooledCompanionChecked(parent: SecureDirectory, archiveFile: SecureFile,
    pins: CompanionPins, check: (string) -> string): CompanionExtractResult

The caller must own a private spool inaccessible to other writers. This avoids copying a download that has already been written to such a spool.

extractCompanionChecked (fun)

fun extractCompanionChecked(parent: SecureDirectory, archiveFile: SecureFile,
    pins: CompanionPins, check: (string) -> string): CompanionExtractResult

Copies an offline input into a private spool before either validation pass. No payload file exists until the complete compressed and decoded archive, manifest, and every file digest have been validated from that spool.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.