Confirm an artifact upload
Completes an upload started with UploadArtifact: stores the file under the release's platform directory and records its checksums in the release manifest. The stored file is private unless the release is on a public target. For a binary <goos>-<goarch> artifact the service reads the stored bytes back and computes their SHA-256 and SHA-512 itself; if a sent sha512 or sha256 does not match, the upload is removed and the call fails. The returned artifact carries the size and checksums as recorded.
A published release is FAILED_PRECONDITION; an unknown release is NOT_FOUND. Pass part_etags for a multipart upload. The caller needs write access to the app's bucket: a signed-in person's token carrying upl:uploads:manage, or a team API key. A read-only token (the download page's client_credentials token, or one without that scope) gets PERMISSION_DENIED.
An updater-cli team API key (carrying updater:apps:read and updater:releases:edit) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets NOT_FOUND.
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
1 <= length1 <= length1 <= length1 <= length1 <= length1 <= lengthoptional
ETags for multipart upload parts. Required when upload was multipart.
Optional hex SHA-256 of the file, checked against the stored bytes of a binary artifact like sha512 is. The confirmed Artifact carries the SHA-256 the service computed either way.
^[0-9a-fA-F]{64}$Response Body
application/json
application/json
curl -X POST "https://updater.xeonr.io/xeonr.updater.v1.UpdaterService/ConfirmArtifact" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"artifact": "map[filename:Pixel-1.4.2-mac.zip platform:darwin sha512:5478894ffb88e2be006df4391f3fb17575b870ff9bc7e8c649ef0d7e9cc5a91adc948a12a4d5819bf9298f57441e2b647680c9bb0ca0a09444b3511c82107c42 size:98566144]"
}Updater
Apps, their configuration and API keys, and the releases published to them.
Confirm a distribution file upload POST
Completes the upload and makes it the distribution's file, recording the filename, size and SHA-512 as sent; the service does not re-hash them. Uploading under the filename the entry already has replaces the file in place; a different filename deletes the previous file. Any external `url` is cleared, since the hosted file now wins. Returns the updated distribution. An unknown distribution is `NOT_FOUND`. The caller needs write access to the app's bucket: a signed-in person's token carrying `upl:uploads:manage`, or a team API key. A read-only token (the download page's `client_credentials` token, or one without that scope) gets `PERMISSION_DENIED`. An updater-cli team API key (carrying `updater:apps:read` and `updater:releases:edit`) may call this for an app its team owns (and, for a bound key, one of its apps); a key for another team's app gets `NOT_FOUND`.