Download Now
Forums

    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
    google 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

    NameKindLine
    ES3ConfigErrorclass29
    IAsyncDocTaskinterface150
    IAsyncStreamTaskinterface156
    NewDocTaskfunction170
    NewStreamTaskfunction177
    S3ResponseHeaderfunction139
    S3UrlDecodefunction132
    TNotifyDocCompleteprocedural163
    TNotifyStreamCompleteprocedural164
    TS3Accessenum127
    accessDefaultenum value127
    accessPrivateenum value127
    accessPublicenum value127
    TS3Configclass35
    Createconstructor54
    DefaultRegionfunction65
    Destroydestructor55
    EndPointfunction60
    ListRegionsprocedure73
    LocationRegionfunction71
    Portfunction62
    Providerfunction57
    AccessIdproperty75
    SecretKeyproperty77
    TS3Methodsclass215
    AddRegionprocedure231
    Createconstructor223
    DeleteObjectfunction272
    Destroydestructor224
    FindRegionfunction229
    GetBucketAclfunction239
    GetBucketCorsfunction241
    GetBucketLocationfunction237
    GetBucketPolicyfunction243
    GetBucketRequestPaymentfunction245
    GetBucketTaggingfunction247
    GetBucketVersioningfunction249
    GetBucketWebsitefunction251
    GetObjectfunction259
    GetObjectAclfunction274
    HeadObjectfunction264
    ListBucketsfunction234
    ListObjectsfunction253
    Presignfunction281
    PutObjectfunction269
    PutObjectAclfunction277
    Reconfigureprocedure226
    Sendfunction287, 288
    SendAsyncprocedure311, 312
    SendObjectfunction317
    SendObjectAsyncprocedure318
    Configproperty321
    TS3Requestrecord110
    EndPointfield112
    Headerfield114