Skip to main content

Class: ObjectsService

Constructors​

constructor​

• new ObjectsService(client, prefixService)

Parameters​

NameType
clientS3Client
prefixServicePrefixService

Defined in​

services/objects.service.ts:37

Methods​

copyObject​

â–¸ copyObject(sourceBucket, sourceKey, destinationBucket, destinationKey, options?): Promise<CopyObjectOutput>

Parameters​

NameType
sourceBucketstring
sourceKeystring
destinationBucketstring
destinationKeystring
options?Object
options.destinationOptions?CopyObjectOptions
options.sourceOptions?DisableAutoPrefix & PrefixContext

Returns​

Promise<CopyObjectOutput>

Defined in​

services/objects.service.ts:119


deleteObject​

â–¸ deleteObject(bucket, remote, options?): Promise<DeleteObjectOutput>

Parameters​

NameType
bucketstring
remotestring
options?DeleteObjectOptions

Returns​

Promise<DeleteObjectOutput>

Defined in​

services/objects.service.ts:71


deleteObjects​

â–¸ deleteObjects(bucket, remotes, options?): Promise<DeleteObjectsOutput>

Parameters​

NameType
bucketstring
remotesstring[]
options?DeleteObjectsOptions

Returns​

Promise<DeleteObjectsOutput>

Defined in​

services/objects.service.ts:87


getObject​

â–¸ getObject(bucket, remote, options?): Promise<GetObjectOutput>

Parameters​

NameType
bucketstring
remotestring
options?GetObjectOptions

Returns​

Promise<GetObjectOutput>

Defined in​

services/objects.service.ts:107


listObjects​

â–¸ listObjects(bucket, options?): Promise<ListObjectsOutput>

Parameters​

NameType
bucketstring
options?ListObjectsOptions

Returns​

Promise<ListObjectsOutput>

Defined in​

services/objects.service.ts:156


listObjectsV2​

â–¸ listObjectsV2(bucket, options?): Promise<ListObjectsV2Output>

Parameters​

NameType
bucketstring
options?ListObjectsV2Options

Returns​

Promise<ListObjectsV2Output>

Defined in​

services/objects.service.ts:165


putObject​

â–¸ putObject(bucket, body, remote, options?): Promise<PutObjectOutput>

Parameters​

NameType
bucketstring
bodyBuffer
remotestring
options?PutObjectOptions

Returns​

Promise<PutObjectOutput>

Defined in​

services/objects.service.ts:42


putObjectFromPath​

â–¸ putObjectFromPath(bucket, path, remote, options?): Promise<PutObjectOutput>

Parameters​

NameType
bucketstring
pathstring
remotestring
options?PutObjectOptions

Returns​

Promise<PutObjectOutput>

Defined in​

services/objects.service.ts:60