Module Multipart.Part

type t = private {
  1. part_number : Part_number.t;
  2. etag : Object.Etag.t;
  3. checksum : Object.Checksum.value option;
  4. size : int64 option;
}

Completed multipart part reference used by CompleteMultipartUpload.

val create : ?checksum:Object.Checksum.value -> ?size:int64 -> part_number:Part_number.t -> etag:Object.Etag.t -> unit -> (t, Awskit.Error.t) Stdlib.result

Create a completed part reference. size is optional because callers may complete parts discovered outside Awskit. Awskit uses known sizes for client-side CompleteMultipartUpload validation when enough information is available; S3 remains the authority for final object-size validation.

val create_exn : ?checksum:Object.Checksum.value -> ?size:int64 -> part_number:Part_number.t -> etag:Object.Etag.t -> unit -> t
val part_number : t -> Part_number.t

Return the completed part number.

val etag : t -> Object.Etag.t

Return the completed part ETag.

val checksum : t -> Object.Checksum.value option

Return the completed part checksum, when known.

val size : t -> int64 option

Return the completed part size, when known.