blob: 967a8c26d83553e46442fc874567de815dd384ef [file] [log] [blame]
Kun Yi91beea62018-11-26 15:23:14 -08001#include "handler.hpp"
2
3namespace blobs
4{
5
6bool BinaryStoreBlobHandler::canHandleBlob(const std::string& path)
7{
8 // TODO: implement
9 return false;
10}
11
12std::vector<std::string> BinaryStoreBlobHandler::getBlobIds()
13{
14 // TODO: implement
15 std::vector<std::string> result;
16 return result;
17}
18
19bool BinaryStoreBlobHandler::deleteBlob(const std::string& path)
20{
21 // TODO: implement
22 return false;
23}
24
25bool BinaryStoreBlobHandler::stat(const std::string& path,
26 struct BlobMeta* meta)
27{
28 // TODO: implement
29 return false;
30}
31
32bool BinaryStoreBlobHandler::open(uint16_t session, uint16_t flags,
33 const std::string& path)
34{
35 // TODO: implement
36 return false;
37}
38
39std::vector<uint8_t> BinaryStoreBlobHandler::read(uint16_t session,
40 uint32_t offset,
41 uint32_t requestedSize)
42{
43 // TODO: implement
44 std::vector<uint8_t> result;
45 return result;
46}
47
48bool BinaryStoreBlobHandler::write(uint16_t session, uint32_t offset,
49 const std::vector<uint8_t>& data)
50{
51 // TODO: implement
52 return false;
53}
54
55bool BinaryStoreBlobHandler::writeMeta(uint16_t session, uint32_t offset,
56 const std::vector<uint8_t>& data)
57{
58 /* Binary store handler doesn't support write meta */
59 return false;
60}
61
62bool BinaryStoreBlobHandler::commit(uint16_t session,
63 const std::vector<uint8_t>& data)
64{
65 // TODO: implement
66 return false;
67}
68
69bool BinaryStoreBlobHandler::close(uint16_t session)
70{
71 // TODO: implement
72 return false;
73}
74
75bool BinaryStoreBlobHandler::stat(uint16_t session, struct BlobMeta* meta)
76{
77 // TODO: implement
78 return false;
79}
80
81bool BinaryStoreBlobHandler::expire(uint16_t session)
82{
83 /* Binary store handler doesn't support expire */
84 return false;
85}
86
87} // namespace blobs