C++ edjLibrary SDK
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
storage.hpp File Reference
#include <cstdint>
#include <map>
#include <string>
#include <vector>
#include "stream.hpp"
#include "error.hpp"

Go to the source code of this file.

Classes

struct  edjx::storage::StorageResponse
 Response to the [edjx::storage::get] request. More...
 
struct  edjx::storage::StorageResponsePending
 Placeholder for storage response used in streaming methods when the response is not available immediately. More...
 
struct  edjx::storage::FileAttributes
 Represents the attributes associated with a stored file. More...
 

Namespaces

namespace  edjx
 
namespace  edjx::storage
 

Functions

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. More...
 
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. More...
 
edjx::error::StorageError edjx::storage::put_streaming (StorageResponsePending &response_streaming, edjx::stream::WriteStream &write_stream, const std::string &bucket_id, const std::string &file_name, const std::string &properties)
 Starts streaming a file to the EDJX Object Store. More...
 
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. More...
 
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. More...
 
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. More...