Documentation
¶
Overview ¶
Package downloader implements Amazon Glacier multipart download.
For information about Glacier, see https://aws.amazon.com/glacier/.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Downloader ¶
type Downloader struct {
// contains filtered or unexported fields
}
Downloader holds internal downloader state.
func New ¶
func New(service glacieriface.GlacierAPI, input *Input) *Downloader
New creates a new instance of the downloader with a service and input.
func (Downloader) Download ¶
func (d Downloader) Download(jobs int) error
Download performs parallel multipart download. The maximum number of the parallel downloads is limited by the jobs parameter.
type Input ¶
type Input struct {
// The AccountId value is the AWS account ID of the account that owns the vault.
// You can either specify an AWS account ID or optionally a single '-' (hyphen),
// in which case Amazon Glacier uses the AWS account ID associated with the
// credentials used to sign the request. If you use an account ID, do not include
// any hyphens ('-') in the ID.
AccountId string
// The name of the vault.
VaultName string
// Filename where the content will be saved.
FileName string
// The job ID whose data is downloaded.
JobId string
// The size of each part except the last, in bytes. The last part can be smaller
// than this part size.
PartSize int64
}
Input provides options for multipart download from an Amazon Glacier vault.
Click to show internal directories.
Click to hide internal directories.