Skip to main content
A delivery is a versioned set of tasks, named <name>@<version>, for example acme-swe@0.1.0. A version never changes. A fix is a new version, and the one it replaces names it as newer. The calls need a key with access to deliveries. From a terminal, the kennet CLI makes the same calls: kennet delivery list, kennet delivery show <id>, kennet delivery pull <id>, kennet delivery verify and kennet delivery diff.

The delivery object

Each task:

List deliveries

GET /v1/kennet/deliveries returns every delivery your organization holds, newest sent first, without their tasks.

Retrieve a delivery

GET /v1/kennet/deliveries/{delivery_id} returns the delivery with every task, its tree hash, its images by digest, and what a run of it asks for. Another organization’s delivery, or an id that does not exist, answers 404 resource_missing.

Download the lock and the checksums

  • GET /v1/kennet/deliveries/{delivery_id}/lock is the delivery’s record. Keep it beside the tasks: they are checked against it with no further call (kennet delivery verify).
  • GET /v1/kennet/deliveries/{delivery_id}/sums is every file’s SHA-256, in the format sha256sum -c reads.

Download a task’s files

GET /v1/kennet/deliveries/{delivery_id}/tasks/{task}/content is one task’s tree as a tar. Unpacked, its tree hash is the one the lock gives.