Class star::S3Writer¶
S3 writer for uploading objects. More...
#include <stards.h>
Classes¶
| Type | Name |
|---|---|
| struct | HeaderData |
Public Functions¶
| Type | Name |
|---|---|
| S3Writer (const std::string & bucket, const std::string & key, const std::string & region, const S3Credentials & creds) |
|
| void | putObject (const char * data, size_t size) Upload object to S3. |
| ~S3Writer () |
Public Static Functions¶
| Type | Name |
|---|---|
| size_t | HeaderCallback (char * buffer, size_t size, size_t nitems, void * userdata) |
| size_t | WriteCallback (char * ptr, size_t size, size_t nmemb, void * userdata) |
Detailed Description¶
Handles uploading data to S3 using PUT requests with AWS Signature V4 authentication. Supports single-shot uploads (entire object in one PUT request).
Public Functions Documentation¶
function S3Writer¶
inline star::S3Writer::S3Writer (
const std::string & bucket,
const std::string & key,
const std::string & region,
const S3Credentials & creds
)
function putObject¶
Upload object to S3.
Parameters:
dataPointer to data to uploadsizeSize of data in bytes
function ~S3Writer¶
Public Static Functions Documentation¶
function HeaderCallback¶
static inline size_t star::S3Writer::HeaderCallback (
char * buffer,
size_t size,
size_t nitems,
void * userdata
)
function WriteCallback¶
static inline size_t star::S3Writer::WriteCallback (
char * ptr,
size_t size,
size_t nmemb,
void * userdata
)
The documentation for this class was generated from the following file StarDS/include/stards.h