@private
# File lib/aws/s3/paginated_collection.rb, line 23 def _each_item markers, limit, options = {}, &block options = list_options(options) options.merge!(markers) unless markers.nil? or markers.empty? options[limit_param] = limit || 1000 response = list_request(options) each_member_in_page(response, &block) response.truncated? ? next_markers(response) : nil end
# File lib/aws/s3/paginated_collection.rb, line 38 def each_member_in_page(page, &block); end
# File lib/aws/s3/paginated_collection.rb, line 53 def limit_param raise NotImplementedError end
# File lib/aws/s3/paginated_collection.rb, line 46 def list_options options opts = {} opts[:bucket_name] = bucket.name if respond_to?(:bucket) opts end
# File lib/aws/s3/paginated_collection.rb, line 41 def list_request(options) raise NotImplementedError end
# File lib/aws/s3/paginated_collection.rb, line 63 def next_markers page pagination_markers.inject({}) do |markers, marker_name| if marker = page.send("next_#{marker_name}") markers[marker_name] = marker if marker end markers end end
# File lib/aws/s3/paginated_collection.rb, line 58 def pagination_markers [:key_marker] end