blob: 68a7fc2bcb9ee5faa5e95cdcd2fa8a3c7b3a2d0a [file] [log] [blame]
#pragma once
#include "rust/cxx.h"
#include <memory>
namespace org {
namespace blobstore {
struct MultiBuf;
struct BlobMetadata;
class BlobstoreClient {
public:
BlobstoreClient();
uint64_t put(MultiBuf &buf) const;
void tag(uint64_t blobid, rust::Str tag) const;
BlobMetadata metadata(uint64_t blobid) const;
private:
class Impl;
std::shared_ptr<Impl> impl;
};
std::unique_ptr<BlobstoreClient> new_blobstore_client();
} // namespace blobstore
} // namespace org