rules/oci/storage.js

Developer reference: this page includes exported implementation details. BUILD authors should prefer the User API reference.

OCI_STORAGE_CACHE

const OCI_STORAGE_CACHE

Undocumented.

declareOciStorage()

declareOciStorage()

Declare the shared OCI storage named cache. Idempotent — safe to call from every rule constructor that needs it (namedCache() declarations are themselves idempotent, but this avoids the redundant host round-trip in happy path use).

ociStorageKey()

ociStorageKey(digest)

Turn a canonical image digest into an oci-storage cache key. by crane digest. path segments, so the colon is swapped for a path-safe separator.

ParameterTypeDescription
digeststringA canonical sha256:<hex> digest, e.g. as returned

Returns: string sha256/<hex> — cachePut/cacheGet treat keys as opaque