Skip to main content

ContentStorage

@webda/core


Interface: ContentStorage

Defined in: packages/utils/lib/content.d.ts:61

Content storage interface

Properties​

schemes​

readonly schemes: string[]

Defined in: packages/utils/lib/content.d.ts:63

Schemes handled, without ':' e.g. ["s3"], ["gs", "gcs"], ["file"]

Methods​

deleteContent()?​

optional deleteContent(url): Promise<void>

Defined in: packages/utils/lib/content.d.ts:79

Delete content

Parameters​

url​

string

Returns​

Promise<void>


getContent()​

getContent(url, options?): Promise<Readable>

Defined in: packages/utils/lib/content.d.ts:67

Get the content

Parameters​

url​

string

options?​

ContentGetOptions

Returns​

Promise<Readable>


headContent()?​

optional headContent(url): Promise<ContentInfo>

Defined in: packages/utils/lib/content.d.ts:75

Perform head content

Parameters​

url​

string

Returns​

Promise<ContentInfo>


putContent()​

putContent(url, body, options?): Promise<ContentInfo>

Defined in: packages/utils/lib/content.d.ts:71

Put content

Parameters​

url​

string

body​

ContentBody

options?​

ContentPutOptions

Returns​

Promise<ContentInfo>