Skip to content

routier-collection


routier-collection / plugins/blob/src / BlobDescriptor

Type Alias: BlobDescriptor

BlobDescriptor = object

Defined in: plugins/blob/src/stores/types.ts:14

What a stored object looks like once it is in the store.

Properties

key

key: string

Defined in: plugins/blob/src/stores/types.ts:16

Where the bytes live. Content-addressed: sha256/<checksum>.


size

size: number

Defined in: plugins/blob/src/stores/types.ts:18

Byte length, so a caller can decide whether to download before downloading.


contentType

contentType: string

Defined in: plugins/blob/src/stores/types.ts:20

Media type, as given at upload. Never sniffed.


checksum

checksum: string

Defined in: plugins/blob/src/stores/types.ts:22

SHA-256 of the bytes, lowercase hex. Also the address — see blobKey.

Released under the MIT License.