@raydeck/s3-manager v2.3.1
@raydeck/s3-manager - v2.3.1
Globals
Index
Variables
Functions
- bucketExists
- copyObject
- deleteObject
- getFile
- getObject
- getS3
- makeDownloadUrl
- makeUploadUrl
- objectExists
- putFile
- putObject
- setS3
- withRecords
- withRecordsSerial
Variables
__checkedBuckets
• Const
__checkedBuckets: object
Defined in index.ts:5
s3
• Let
s3: S3 | undefined
Defined in index.ts:6
Functions
bucketExists
▸ Const
bucketExists(Bucket
: string, skipCache
: boolean): Promise\
Defined in index.ts:16
Parameters:
Name | Type | Default value |
---|---|---|
Bucket | string | - |
skipCache | boolean | false |
Returns: Promise\
copyObject
▸ Const
copyObject(__namedParameters
: { destBucket: undefined | string ; destKey: undefined | string ; sourceBucket: string ; sourceKey: string }): Promise\<PromiseResult\<CopyObjectOutput, AWSError>>
Defined in index.ts:147
Parameters:
Name | Type |
---|---|
__namedParameters | { destBucket: undefined | string ; destKey: undefined | string ; sourceBucket: string ; sourceKey: string } |
Returns: Promise\<PromiseResult\<CopyObjectOutput, AWSError>>
deleteObject
▸ Const
deleteObject(Key
: any, Bucket
: any): Promise\
Defined in index.ts:83
Parameters:
Name | Type |
---|---|
Key | any |
Bucket | any |
Returns: Promise\
getFile
▸ Const
getFile(Key
: string, Bucket
: string, targetPath
: string): Promise\
Defined in index.ts:192
Parameters:
Name | Type |
---|---|
Key | string |
Bucket | string |
targetPath | string |
Returns: Promise\
getObject
▸ Const
getObject(Key
: any, Bucket
: any): Promise\<PromiseResult\<GetObjectOutput, AWSError>>
Defined in index.ts:101
Parameters:
Name | Type |
---|---|
Key | any |
Bucket | any |
Returns: Promise\<PromiseResult\<GetObjectOutput, AWSError>>
getS3
▸ Const
getS3(): S3
Defined in index.ts:10
Returns: S3
makeDownloadUrl
▸ Const
makeDownloadUrl(__namedParameters
: { Bucket: string ; Key: string ; ResponseContentType: undefined | string ; detectContentType: boolean = true; ttlMs: number = 60 * 1000 }): Promise\
Defined in index.ts:52
Parameters:
Name | Type |
---|---|
__namedParameters | { Bucket: string ; Key: string ; ResponseContentType: undefined | string ; detectContentType: boolean = true; ttlMs: number = 60 * 1000 } |
Returns: Promise\
makeUploadUrl
▸ Const
makeUploadUrl(Key
: any, Bucket
: any): Promise\
Defined in index.ts:36
Parameters:
Name | Type |
---|---|
Key | any |
Bucket | any |
Returns: Promise\
objectExists
▸ Const
objectExists(Key
: any, Bucket
: any): Promise\
Defined in index.ts:28
Parameters:
Name | Type |
---|---|
Key | any |
Bucket | any |
Returns: Promise\
putFile
▸ Const
putFile(sourcePath
: string, Key
: string, Bucket
: string, options
: Partial\): Promise\
Defined in index.ts:217
Parameters:
Name | Type | Default value |
---|---|---|
sourcePath | string | - |
Key | string | - |
Bucket | string | - |
options | Partial\ | {} |
Returns: Promise\
putObject
▸ Const
putObject(Key
: any, Bucket
: any, Body
: any, options
: Partial\): Promise\<PromiseResult\<PutObjectOutput, AWSError>>
Defined in index.ts:120
Parameters:
Name | Type | Default value |
---|---|---|
Key | any | - |
Bucket | any | - |
Body | any | - |
options | Partial\ | {} |
Returns: Promise\<PromiseResult\<PutObjectOutput, AWSError>>
setS3
▸ Const
setS3(newS3
: any): void
Defined in index.ts:7
Parameters:
Name | Type |
---|---|
newS3 | any |
Returns: void
withRecords
▸ Const
withRecords(f
: any): (Anonymous function)
Defined in index.ts:188
Parameters:
Name | Type |
---|---|
f | any |
Returns: (Anonymous function)
withRecordsSerial
▸ Const
withRecordsSerial(f
: any, allowErrors
: boolean): (Anonymous function)
Defined in index.ts:178
Parameters:
Name | Type | Default value |
---|---|---|
f | any | - |
allowErrors | boolean | false |
Returns: (Anonymous function)
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago