C++ edjLibrary SDK
|
Classes | |
struct | FileAttributes |
Represents the attributes associated with a stored file. More... | |
struct | StorageResponse |
Response to the [edjx::storage::get ] request. More... | |
Functions | |
edjx::error::StorageError | get (StorageResponse &result, const std::string &bucket_id, const std::string &file_name) |
Returns a file from the EDJX Object Store. More... | |
edjx::error::StorageError | put (StorageResponse &result, const std::string &bucket_id, const std::string &file_name, const std::string &properties, const std::vector< uint8_t > contents) |
Uploads a file to the EDJX Object Store. More... | |
edjx::error::StorageError | remove (StorageResponse result, const std::string &bucket_id, const std::string &file_name) |
Deletes the given file from the EDJX Object Store. More... | |
edjx::error::StorageError | get_attributes (FileAttributes &result, const std::string &bucket_id, const std::string &file_name) |
Returns attributes associated with the given file from the EDJX Object Store. More... | |
edjx::error::StorageError | set_attributes (StorageResponse &result, const std::string &bucket_id, const std::string &file_name, const FileAttributes &attributes) |
Sets the attributes associated with the given file. More... | |
edjx::error::StorageError edjx::storage::get | ( | StorageResponse & | result, |
const std::string & | bucket_id, | ||
const std::string & | file_name | ||
) |
Returns a file from the EDJX Object Store.
result | Result File |
bucket_id | Bucket ID |
file_name | File name |
edjx::error::StorageError edjx::storage::get_attributes | ( | FileAttributes & | result, |
const std::string & | bucket_id, | ||
const std::string & | file_name | ||
) |
Returns attributes associated with the given file from the EDJX Object Store.
result | Result of the operation |
bucket_id | Bucket ID |
file_name | File name |
edjx::error::StorageError edjx::storage::put | ( | StorageResponse & | result, |
const std::string & | bucket_id, | ||
const std::string & | file_name, | ||
const std::string & | properties, | ||
const std::vector< uint8_t > | contents | ||
) |
Uploads a file to the EDJX Object Store.
result | Result of the operation |
bucket_id | Bucket ID |
file_name | File name |
properties | Properties |
contents | File content |
edjx::error::StorageError edjx::storage::remove | ( | StorageResponse | result, |
const std::string & | bucket_id, | ||
const std::string & | file_name | ||
) |
Deletes the given file from the EDJX Object Store.
result | Result of the operation |
bucket_id | Bucket ID |
file_name | File Name |
edjx::error::StorageError edjx::storage::set_attributes | ( | StorageResponse & | result, |
const std::string & | bucket_id, | ||
const std::string & | file_name, | ||
const FileAttributes & | attributes | ||
) |
Sets the attributes associated with the given file.
This setting replaces the existing attributes.
result | Result of the operation |
bucket_id | Bucket ID |
file_name | File name |
attributes | File attributes |