binhost/API.md
Ivan Bushchik cae10cc45e
Fix missing "Request"
Signed-off-by: Ivan Bushchik <ivabus@ivabus.dev>
2024-02-01 20:56:28 +03:00

913 B

Get list of binaries

Request

GET / HTTP/1.1

Example response

- hello (platforms: ["Linux-aarch64", "Darwin-arm64", "Darwin-x86_64"])

Get script for specific binary (suitable for curl | sh syntax)

This script will determine platform and arch and download necessary binary (and check hashsum if sha256sum binary is present in $PATH).

Request

GET /<BIN> HTTP/1.1

Get binary for specific platform

Request

GET /bin/<BIN>/<PLATFORM>/<ARCH> HTTP/1.1

Get ed25519 signature

Request

GET /bin/<BIN>/<PLATFORM>/<ARCH>/sign HTTP/1.1

Get manifest

Manifest is a file, that contains ED25519 public key and SHA256sums list

Request

GET /runner/manifest HTTP/1.1

Get binary runner

Request

GET /runner/<runner> HTTP/1.1