Module Multipart.List_parts

Pagination helpers for ListParts.

val fold_pages : t -> upload:_ Awskit_s3.Multipart.Upload.t -> ?options:Awskit_s3.Multipart.List_parts.options -> ?max_pages:int -> init:'acc -> f: ('acc -> Awskit_s3.Multipart.List_parts.page -> ('acc, Awskit.Error.t) Stdlib.result) -> unit -> ('acc, Awskit.Error.t) Stdlib.result

Follow part-number markers and fold pages until S3 stops returning a next marker or max_pages is reached.

val pages : t -> upload:_ Awskit_s3.Multipart.Upload.t -> ?options:Awskit_s3.Multipart.List_parts.options -> ?max_pages:int -> unit -> (Awskit_s3.Multipart.List_parts.page list, Awskit.Error.t) Stdlib.result

Collect uploaded-part pages.

Returns an error if max_pages is supplied and S3 reports more pages than the bound allows.

val parts : t -> upload:_ Awskit_s3.Multipart.Upload.t -> ?options:Awskit_s3.Multipart.List_parts.options -> ?max_pages:int -> unit -> (Awskit_s3.Multipart.List_parts.part_info list, Awskit.Error.t) Stdlib.result

Collect uploaded part summaries across pages.

Returns an error if max_pages is supplied and S3 reports more pages than the bound allows.