Skip to content
Registry

storage

v0.1.9

Object storage across AWS S3, GCS, Cloudflare R2, and a native local filesystem backend. Streamed uploads, signed URLs, and object change triggers.

blobgcsobject-storager2s3

Install

bash
iii trigger compose::add worker=storage@0.1.9

Run in your project with the iii engine running. Exact versions are immutable and digest-pinned.

Functions6

storage::deleteObject

Function

Delete an object. No-op when the object does not exist.

Request
  • bucketstringrequired
  • keystringrequired
  • version_idstring
Response
  • deletedbooleanrequired

storage::getObject

Function

Read an object. Body is base64; for large objects use presignUrl.

Request
  • bucketstringrequired
  • keystringrequired
  • version_idstring
Response
  • body_base64stringrequired
  • content_typestringrequired
  • etagstringrequired
  • last_modifiedstring· date-timerequired
  • sizeinteger· uint64requiredmin 0

storage::headObject

Function

Fetch object metadata (size, ETag, content-type, last-modified) without downloading the body.

Request
  • bucketstringrequired
  • keystringrequired
  • version_idstring
Response
  • content_typestringrequired
  • etagstringrequired
  • last_modifiedstring· date-timerequired
  • sizeinteger· uint64requiredmin 0

storage::on-config-change

Function

Internal: rebuild storage backends from the authoritative configuration when it changes.

Request
  • idstring

    Configuration id that changed (advisory; the handler re-fetches the value).

Response
  • okbooleanrequired

storage::presignUrl

Function

Issue a short-lived URL the browser can hit directly to PUT or GET an object.

Request
  • bucketstringrequired
  • content_typestring
  • expires_in_secondsinteger· uint64min 0
  • keystringrequired
  • methodstringrequiredenum GET, PUT
  • response_content_dispositionstring

    GET-only: override `Content-Disposition` header on the served response. Rejected with `INVALID_PRESIGN_PARAMS` if set on a PUT presign.

  • response_content_typestring

    GET-only: override `Content-Type` header on the served response. Rejected with `INVALID_PRESIGN_PARAMS` if set on a PUT presign.

Response
  • expires_atstring· date-timerequired
  • urlstringrequired

storage::putObject

Function

Write an object to a configured bucket. Body is base64; max 10MB inline.

Request
  • body_base64stringrequired

    Base64-encoded body. The legacy field name `body` is accepted as an alias for backward compatibility with clients that pre-date the rename.

  • bucketstringrequired
  • cache_controlstring
  • content_typestring
  • keystringrequired
  • metadataobject
Response
  • etagstringrequired
  • sizeinteger· uint64requiredmin 0
  • version_idstring

Triggers2

storage::object-created

Trigger

Fires when an object is written to a configured bucket whose notifications source is wired up.

Invocation
valueunknown
Return
valueunknown

storage::object-deleted

Trigger

Fires when an object is removed from a configured bucket whose notifications source is wired up.

Invocation
valueunknown
Return
valueunknown

Search the registry

Find workers, kits and executables, or jump to a page.