method
Backend.Put
Upload a size-checked object using a SigV4 payload hash.
Arguments
| Argument | Type | Description |
|---|---|---|
ctx | context.Context | The ctx value. |
key | string | The key value. |
source | io.Reader | The source value. |
size | int64 | The size value. |
contentType | string | The contentType value. |
Returns
The declared result.
result errorHow it works
Seekable inputs are hashed then rewound. Non-seekable inputs use a bounded temporary spool that is cleaned on success, error, or cancellation.
Full signature
Related types
BackendAn S3 storage and URL-signing backend.