moonbit-community/proton/updater does not have a README file
type ArtifactFetch = async (String, Int64, async (Bytes) -> Unit raise UpdateError) -> Unit raise UpdateErrorpub(all) suberror UpdateError {
FetchFailed(url~ : String, detail~ : String)
ManifestSignatureInvalid
ManifestUndecodable(detail~ : String)
ManifestStale(published_at~ : String, oldest_accepted~ : String)
MalformedSignature(url~ : String)
UntrustedKey(detail~ : String)
ArtifactSizeMismatch(expected~ : Int64, actual~ : Int64)
ArtifactDigestMismatch(expected~ : String, actual~ : String)
ArtifactSignatureInvalid
ClockUnusable(detail~ : String)
InstallBusy
RollbackRejected(target~ : UInt64, installed~ : UInt64)
RevisionMismatch(detail~ : String)
InstallInterrupted(detail~ : String)
InstallFailed(step~ : String, detail~ : String)
} derive(Eq, Debug)async fn UpdateChannel::check(self : UpdateChannel, fetch : async (String) -> Bytes raise UpdateError, oldest_accepted : Timestamp) -> CheckOutcome raise UpdateErrorasync fn UpdateChannel::download_and_install(self : UpdateChannel, fetch : async (String, Int64, async (Bytes) -> Unit raise UpdateError) -> Unit raise UpdateError, update : AvailableUpdate, on_progress? : async (Int64) -> Unit noraise) -> InstallOutcome raise UpdateErrorfn UpdateChannel::new(endpoint : String, public_keys : Array[String], platform : String, current_revision : UInt64) -> UpdateChannel raise UpdateErrorasync fn http_fetch_artifact(url : String, expected_size : Int64, consume : async (Bytes) -> Unit raise UpdateError) -> Unit raise UpdateErrorlet maximum_metadata_bytes : IntMoonBit bindings for the Proton native desktop runtime.
Dependencies