Struct: s3manager.UploadObjectsIterator

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

Overview

UploadObjectsIterator implements the BatchUploadIterator interface and allows for batched upload of objects.

Implemented Interfaces

s3manager.BatchUploadIterator, s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Objects []BatchUploadObject

Method Details

func (batcher *UploadObjectsIterator) Err() error

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



515
516
517
// File 'service/s3/s3manager/batch.go', line 515

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

func (batcher *UploadObjectsIterator) Next() bool

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



504
505
506
507
508
509
510
511
// File 'service/s3/s3manager/batch.go', line 504

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

func (batcher *UploadObjectsIterator) UploadObject() BatchUploadObject

UploadObject will return the BatchUploadObject at the current batched index.



520
521
522
523
// File 'service/s3/s3manager/batch.go', line 520

func (batcher *UploadObjectsIterator) UploadObject() BatchUploadObject { object := batcher.Objects[batcher.index] return object }