Help Center> OBS GO SDK> API Reference> Data Types> Request Parameters of Resumable Download
Updated on 2022-02-10 GMT+08:00

Request Parameters of Resumable Download

Type Definition

type DownloadFileInput struct

Parameter Description

Field

Type

Optional or Mandatory

Description

Bucket

string

Mandatory

Bucket name

Key

string

Mandatory

Object name

VersionId

string

Optional

Object version ID

DownloadFile

string

Optional

Full path of the local directory to which the object is downloaded. If the value is empty, the downloaded object is saved in the directory where the program is executed.

PartSize

int64

Optional

Part size, in bytes.

TaskNum

int

Optional

Maximum number of files that can be downloaded concurrently in multipart mode.

EnableCheckpoint

bool

Optional

Whether to enable the resumable download mode. The default value is False, indicating that this mode is disabled.

CheckpointFile

string

Optional

File used to record the download progress. This parameter is effective only in the resumable download mode. If the value is empty, the file is in the same local directory as the downloaded object.

Origin

string

Optional

Origin specified in the preflight request. Generally, it is a domain name.

RequestHeader

string

Optional

HTTP headers in a cross-origin request

SseHeader

SseCHeader

Optional

Header for server-side decryption

IfMatch

string

Optional

Returns the source object if its ETag is the same as the one specified by this parameter; otherwise, an error is returned.

IfNoneMatch

string

Optional

Returns the source object if its ETag is different from the one specified by this parameter; otherwise, an error is returned.

IfModifiedSince

time.Time

Optional

Returns the object if it is modified after the time specified by this parameter; otherwise, an error is returned.

IfUnmodifiedSince

time.Time

Optional

Returns the object if it remains unchanged since the time specified by this parameter; otherwise, an error is returned.