Struct: s3manager.DeleteObjectsIterator

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

Overview

DeleteObjectsIterator is an interface that uses the scanner pattern to iterate through a series of objects to be deleted.

Implemented Interfaces

s3manager.BatchDeleteIterator, s3crypto.Cipher, s3manager.ReadSeekerWriteTo, s3manager.WriterReadFrom

Structure Field Summary collapse

Method Summary collapse

Structure Field Details

Objects []BatchDeleteObject

Method Details

func (iter *DeleteObjectsIterator) DeleteObject() BatchDeleteObject

DeleteObject will return the BatchDeleteObject at the current batched index.



296
297
298
299
// File 'service/s3/s3manager/batch.go', line 296

func (iter *DeleteObjectsIterator) DeleteObject() BatchDeleteObject { object := iter.Objects[iter.index] return object }

func (iter *DeleteObjectsIterator) Err() error

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



291
292
293
// File 'service/s3/s3manager/batch.go', line 291

func (iter *DeleteObjectsIterator) Err() error { return nil }

func (iter *DeleteObjectsIterator) Next() bool

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



280
281
282
283
284
285
286
287
// File 'service/s3/s3manager/batch.go', line 280

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