|
certbotbot
Reference documentation for a modular Bash project
|
Retrieves one selected current object without any S3 write authority. More...
Functions | |
| int | certbotbot_client_s3_fetch (String workspace, String bucket, String key) |
| Stages one nonempty current S3 object into a private workspace. | |
Retrieves one selected current object without any S3 write authority.
The caller owns an absolute private mode-0700 workspace. HeadObject 404 proves absence only when HeadBucket succeeds. AWS errors are classified without exposing raw stderr or any downloaded content. The resulting downloaded.tar.gz contains unvalidated bytes for task #53.
| int certbotbot_client_s3_fetch | ( | String | workspace, |
| String | bucket, | ||
| String | key | ||
| ) |
Stages one nonempty current S3 object into a private workspace.
| workspace | New private absolute staging directory (0700). |
| bucket | Operator-selected existing S3 bucket. |
| key | Exact selected current object key. |
| 0 | Nonempty untrusted object staged. |
| 64 | Invalid workspace or object selection. |
| 66 | Confirmed absent key. |
| 69 | Missing/incompatible AWS client or uncertain remote operation. |
| 74 | Failed local staging or empty/partial download. |