Interface MultiPartUploadHelper (7.3.2)

Package

@google-cloud/storage

Properties

bucket

bucket: Bucket;

fileName

fileName: string;

partsMap

partsMap?: Map<number, string>;

uploadId

uploadId?: string;

Methods

abortUpload()

abortUpload(): Promise<void>;
Returns
TypeDescription
Promise<void>

completeUpload()

completeUpload(): Promise<GaxiosResponse | undefined>;
Returns
TypeDescription
Promise<GaxiosResponse | undefined>

initiateUpload(headers)

initiateUpload(headers?: {
        [key: string]: string;
    }): Promise<void>;
Parameter
NameDescription
headers { [key: string]: string; }
Returns
TypeDescription
Promise<void>

uploadPart(partNumber, chunk, validation)

uploadPart(partNumber: number, chunk: Buffer, validation?: 'md5' | false): Promise<void>;
Parameters
NameDescription
partNumber number
chunk Buffer
validation 'md5' | false
Returns
TypeDescription
Promise<void>