Package gcs-resumable-upload (3.4.0)

Classes

Upload

Interfaces

ApiError

ConfigMetadata

Encryption

ErrorWithCode

GoogleInnerError

QueryParameters

RetryOptions

UploadConfig

Variables

PROTOCOL_REGEX

PROTOCOL_REGEX: RegExp

Functions

createURI(cfg)

export declare function createURI(cfg: UploadConfig): Promise
Parameter
NameDescription
cfgUploadConfig
Returns
TypeDescription
Promise<string>

createURI(cfg, callback)

export declare function createURI(cfg: UploadConfig, callback: CreateUriCallback): void;
Parameters
NameDescription
cfgUploadConfig
callbackCreateUriCallback
Returns
TypeDescription
void

upload(cfg)

export declare function upload(cfg: UploadConfig): Upload;
Parameter
NameDescription
cfgUploadConfig
Returns
TypeDescription
Upload

Type Aliases

CreateUriCallback

export declare type CreateUriCallback = (err: Error | null, uri?: string) => void;

PredefinedAcl

export declare type PredefinedAcl = 'authenticatedRead' | 'bucketOwnerFullControl' | 'bucketOwnerRead' | 'private' | 'projectPrivate' | 'publicRead';