跳转到内容
简体中文

ObjectStoragePluginOptionsType

此内容尚不支持你的语言。

ObjectStoragePluginOptionsType = object

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:11

readonly backend: ObjectStorageBackendSpec

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:15

Backend definition — filesystem, S3, or custom.


readonly optional compression?: CompressionConfig | CompressionResolver

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:21

Compression config or per-pid resolver. Default: gzip.


readonly optional encryption?: EncryptionConfig | EncryptionResolver

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:23

Encryption config or per-pid resolver. Default: none.


readonly optional keepN?: number

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:19

Snapshot history retention; 0 disables pruning. Default: 3.


readonly optional maxDecompressedBytes?: number

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:32

Cap on the decompressed size of a stored body in bytes — the decompression-bomb guard on read (security audit #3), applied to both the snapshot and durable-state stores this plugin registers. Default 512 MiB (DEFAULT_MAX_DECOMPRESSED_BYTES); Infinity opts out.


readonly optional prefix?: string

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:17

Key prefix prepended to every object — e.g. 'env-prod/'.


readonly optional serializer?: Serializer

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:25

Payload serializer applied to both stores this plugin registers.


readonly optional snapshotPluginId?: string

Defined in: src/persistence/object-storage/ObjectStoragePluginOptions.ts:13

Plugin ID under which the snapshot store is registered.