Reference Codebot.Networking.Storage.pas
Part of the Codebot package
The Codebot.Networking.Storage unit lets you work with buckets and files in Amazon S3 and compatible cloud storage. TS3Config holds the end points, regions, and credentials of a provider. These providers are built in, and each reads its keys from environment variables unless you set AccessId and SecretKey yourself:
| Provider | Environment variables |
|---|---|
| amazon | AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY |
| wasabi | WAS_ACCESS_KEY_ID and WAS_SECRET_ACCESS_KEY |
| digitalocean | DO_ACCESS_KEY_ID and DO_SECRET_ACCESS_KEY |
| GOOG_ACCESS_KEY_ID and GOOG_SECRET_ACCESS_KEY | |
| ibm | IBM_ACCESS_KEY_ID and IBM_SECRET_ACCESS_KEY |
| scaleway | SCW_ACCESS_KEY and SCW_SECRET_KEY |
| ovh | OVH_ACCESS_KEY_ID and OVH_SECRET_ACCESS_KEY |
| hetzner | HETZNER_ACCESS_KEY_ID and HETZNER_SECRET_ACCESS_KEY |
TS3Methods builds the S3 REST requests. You can run them as asynchronous tasks, which give you either an XML document through IAsyncDocTask or a stream through IAsyncStreamTask. Objects can be uploaded as private or public on the providers that support it, though Amazon buckets with ACLs disabled and Google buckets with uniform access reject that, so the default sends no ACL and follows the bucket's own rules.
Items 55 items
| Name | Kind | Line |
|---|---|---|
| ES3ConfigError | class | 29 |
| IAsyncDocTask | interface | 150 |
| IAsyncStreamTask | interface | 156 |
| NewDocTask | function | 170 |
| NewStreamTask | function | 177 |
| S3ResponseHeader | function | 139 |
| S3UrlDecode | function | 132 |
| TNotifyDocComplete | procedural | 163 |
| TNotifyStreamComplete | procedural | 164 |
| TS3Access | enum | 127 |
| accessDefault | enum value | 127 |
| accessPrivate | enum value | 127 |
| accessPublic | enum value | 127 |
| TS3Config | class | 35 |
| Create | constructor | 54 |
| DefaultRegion | function | 65 |
| Destroy | destructor | 55 |
| EndPoint | function | 60 |
| ListRegions | procedure | 73 |
| LocationRegion | function | 71 |
| Port | function | 62 |
| Provider | function | 57 |
| AccessId | property | 75 |
| SecretKey | property | 77 |
| TS3Methods | class | 215 |
| AddRegion | procedure | 231 |
| Create | constructor | 223 |
| DeleteObject | function | 272 |
| Destroy | destructor | 224 |
| FindRegion | function | 229 |
| GetBucketAcl | function | 239 |
| GetBucketCors | function | 241 |
| GetBucketLocation | function | 237 |
| GetBucketPolicy | function | 243 |
| GetBucketRequestPayment | function | 245 |
| GetBucketTagging | function | 247 |
| GetBucketVersioning | function | 249 |
| GetBucketWebsite | function | 251 |
| GetObject | function | 259 |
| GetObjectAcl | function | 274 |
| HeadObject | function | 264 |
| ListBuckets | function | 234 |
| ListObjects | function | 253 |
| Presign | function | 281 |
| PutObject | function | 269 |
| PutObjectAcl | function | 277 |
| Reconfigure | procedure | 226 |
| Send | function | 287, 288 |
| SendAsync | procedure | 311, 312 |
| SendObject | function | 317 |
| SendObjectAsync | procedure | 318 |
| Config | property | 321 |
| TS3Request | record | 110 |
| EndPoint | field | 112 |
| Header | field | 114 |