Struct: s3manager.DownloadObjectsIterator

import "../ibm-cos-sdk-go/service/s3/s3manager"

Overview

DownloadObjectsIterator implements the BatchDownloadIterator interface and allows for batched download of objects.

Implemented Interfaces

s3manager.BatchDownloadIterator, s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Method Details

func (batcher *DownloadObjectsIterator) DownloadObject() BatchDownloadObject

DownloadObject will return the BatchDownloadObject at the current batched index.



475
476
477
478
// File 'service/s3/s3manager/batch.go', line 475

func (batcher *DownloadObjectsIterator) DownloadObject() BatchDownloadObject { object := batcher.Objects[batcher.index] return object }

func (batcher *DownloadObjectsIterator) Err() error

Err will return an error. Since this is just used to satisfy the BatchDeleteIterator interface this will only return nil.



482
483
484
// File 'service/s3/s3manager/batch.go', line 482

func (batcher *DownloadObjectsIterator) Err() error { return nil }

func (batcher *DownloadObjectsIterator) Next() bool

Next will increment the default iterator's index and ensure that there is another object to iterator to.



465
466
467
468
469
470
471
472
// File 'service/s3/s3manager/batch.go', line 465

func (batcher *DownloadObjectsIterator) Next() bool { if batcher.inc { batcher.index++ } else { batcher.inc = true } return batcher.index < len(batcher.Objects) }