PutObjectPart - Upload an object part.
(ctx context.Context, bucket, object, uploadID string, partID int, data io.Reader, size int64, opts PutObjectPartOptions, )
| 96 | |
| 97 | // PutObjectPart - Upload an object part. |
| 98 | func (c Core) PutObjectPart(ctx context.Context, bucket, object, uploadID string, partID int, |
| 99 | data io.Reader, size int64, opts PutObjectPartOptions, |
| 100 | ) (ObjectPart, error) { |
| 101 | p := uploadPartParams{ |
| 102 | bucketName: bucket, |
| 103 | objectName: object, |
| 104 | uploadID: uploadID, |
| 105 | reader: data, |
| 106 | partNumber: partID, |
| 107 | md5Base64: opts.Md5Base64, |
| 108 | sha256Hex: opts.Sha256Hex, |
| 109 | size: size, |
| 110 | sse: opts.SSE, |
| 111 | streamSha256: !opts.DisableContentSha256, |
| 112 | customHeader: opts.CustomHeader, |
| 113 | trailer: opts.Trailer, |
| 114 | } |
| 115 | return c.uploadPart(ctx, p) |
| 116 | } |
| 117 | |
| 118 | // ListObjectParts - List uploaded parts of an incomplete upload.x |
| 119 | func (c Core) ListObjectParts(ctx context.Context, bucket, object, uploadID string, partNumberMarker, maxParts int) (result ListObjectPartsResult, err error) { |