2
0
mirror of https://github.com/cderche/greenlock-storage-s3 synced 2025-05-13 16:16:32 +00:00
2019-05-08 12:19:12 +01:00

16 lines
530 B
TypeScript

import {Service} from '../service';
export class GlacierCustomizations extends Service {
/**
* Computes the SHA-256 linear and tree hash checksums for a given
* block of Buffer data. Pass the tree hash of the computed checksums
* as the checksum input to the {completeMultipartUpload} when performing
* a multi-part upload.
*/
computeChecksums(data: Buffer|string): GlacierComputeChecksumsOutput;
}
export interface GlacierComputeChecksumsOutput {
linearHash: string;
treeHash: string;
}