@lab08/nestjs-s3
Classes​
- BucketsService
- DefaultPrefixAlgorithmService
- DeletionService
- DownloadService
- ObjectsService
- PrefixService
- S3Module
- SignedUrlService
Interfaces​
Type aliases​
CopyObjectOptions​
Ƭ CopyObjectOptions: Omit
<PutObjectCommandInput
, "Bucket"
| "Key"
| "CopySource"
> & DisableAutoPrefix
& PrefixContext
Defined in​
types/object-command-options.type.ts:19
DeleteObjectOptions​
Ƭ DeleteObjectOptions: Omit
<DeleteObjectCommandInput
, "Bucket"
| "Key"
> & DisableAutoPrefix
& PrefixContext
Defined in​
types/object-command-options.type.ts:18
DeleteObjectsOptions​
Ƭ DeleteObjectsOptions: Omit
<DeleteObjectsCommandInput
, "Bucket"
| "Delete"
> & DisableAutoPrefix
& PrefixContext
Defined in​
types/object-command-options.type.ts:12
DisableAutoPrefix​
Ƭ DisableAutoPrefix: Object
Type declaration​
Name | Type |
---|---|
disableAutoPrefix? | boolean |
Defined in​
DownloadOptions​
Ƭ DownloadOptions: Object
Type declaration​
Name | Type |
---|---|
createPath? | boolean |
filename? | string | null |
mode? | number | string |
Defined in​
types/download-options.type.ts:1
GetObjectOptions​
Ƭ GetObjectOptions: Omit
<GetObjectCommandInput
, "Bucket"
| "Key"
> & DisableAutoPrefix
& PrefixContext
Defined in​
types/object-command-options.type.ts:11
ListObjectsOptions​
Ƭ ListObjectsOptions: Omit
<ListObjectsCommandInput
, "Bucket"
>
Defined in​
types/object-command-options.type.ts:22
ListObjectsV2Options​
Ƭ ListObjectsV2Options: Omit
<ListObjectsV2CommandInput
, "Bucket"
>
Defined in​
types/object-command-options.type.ts:23
OptionsWithAutoPrefix​
Ƭ OptionsWithAutoPrefix: PutObjectOptions
| DeleteObjectOptions
| DeleteObjectsOptions
| GetObjectOptions
| CopyObjectOptions
Defined in​
types/object-command-options.type.ts:24
PrefixAlgorithm​
Ƭ PrefixAlgorithm: (remote
: string
, prefix?
: string
, bucket?
: string
) => string
Type declaration​
â–¸ (remote
, prefix?
, bucket?
): string
Parameters​
Name | Type |
---|---|
remote | string |
prefix? | string |
bucket? | string |
Returns​
string
Defined in​
types/prefix-algorithm.type.ts:1
PrefixContext​
Ƭ PrefixContext: Object
Type declaration​
Name | Type |
---|---|
prefixContext? | any |
Defined in​
PutObjectOptions​
Ƭ PutObjectOptions: Omit
<PutObjectCommandInput
, "Bucket"
| "Body"
| "Key"
> & DisableAutoPrefix
& PrefixContext
Defined in​
types/object-command-options.type.ts:15
PutSignedUrl​
Ƭ PutSignedUrl: Object
Type declaration​
Name | Type |
---|---|
remote | string |
url | string |
Defined in​
S3AsyncConfig​
Ƭ S3AsyncConfig: Pick
<ModuleMetadata
, "imports"
| "providers"
> & { inject?
: (Type
<unknown
> | string
| symbol
| Abstract
<unknown
>)[] ; prefixAlgorithmInject?
: (Type
<unknown
> | string
| symbol
| Abstract
<unknown
>)[] ; prefixAlgorithmFactory?
: (...args
: any
[]) => IPrefixAlgorithm
| Promise
<IPrefixAlgorithm
> ; useFactory
: (...args
: any
[]) => Omit
<S3Config
, "prefixAlgorithm"
> | Promise
<Omit
<S3Config
, "prefixAlgorithm"
>> }
Defined in​
S3Config​
Ƭ S3Config: Object
Type declaration​
Name | Type |
---|---|
accessKeyId | string |
endPoint? | string |
prefix? | string |
prefixAlgorithm? | IPrefixAlgorithm |
region | string |
secretAccessKey | string |
Defined in​
Variables​
DEFAULT_EXPIRES_IN​
• DEFAULT_EXPIRES_IN: 3600
Defined in​
PREFIX_ALGORITHM​
• PREFIX_ALGORITHM: "prefix.algorithm"
Defined in​
S3_CONFIG​
• S3_CONFIG: "s3.config"
Defined in​
S3_SERVICE​
• S3_SERVICE: "s3.service"
Defined in​
Functions​
createS3ServiceProvider​
â–¸ Const
createS3ServiceProvider(): Provider
<any
>
Returns​
Provider
<any
>