R2LiveImageStore.ts overview
Compatibility entrypoint for the R2 store and AWS SDK transport.
Use @effect-vfs/persistence/R2Store for the transport-independent
store and @effect-vfs/persistence/R2S3Transport for the S3 adapter.
Since v0.5.0
utils
Client
Client supplies a borrowed transport.
Example
import { Client } from "@effect-vfs/persistence/R2LiveImageStore"Since v0.12.0
ObjectRecord
Bytes and metadata returned by a transport.
Example
import type { ObjectRecord } from "@effect-vfs/persistence/R2LiveImageStore"Since v0.5.0
Options
Options for a single R2 store.
Example
import type { Options } from "@effect-vfs/persistence/R2LiveImageStore"Since v0.5.0
R2Client
The capability supplied to the store.
Example
import type { R2Client } from "@effect-vfs/persistence/R2LiveImageStore"Since v0.5.0
fromS3
Adapt an application-owned AWS SDK client.
Example
import { fromS3 } from "@effect-vfs/persistence/R2LiveImageStore"Since v0.5.0
layer
Build a store layer for one R2 key.
Example
import { layer } from "@effect-vfs/persistence/R2LiveImageStore"Since v0.5.0