diff options
Diffstat (limited to 'tvix/store/src/client.rs')
-rw-r--r-- | tvix/store/src/client.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tvix/store/src/client.rs b/tvix/store/src/client.rs new file mode 100644 index 000000000000..3b282eacdd70 --- /dev/null +++ b/tvix/store/src/client.rs @@ -0,0 +1,10 @@ +use crate::proto::Directory; + +pub trait StoreClient { + fn open_blob(&self, digest: Vec<u8>) -> std::io::Result<Box<dyn std::io::BufRead>>; + + // TODO: stat_blob, put_blob? + fn get_directory(&self, digest: Vec<u8>) -> std::io::Result<Option<Directory>>; + + // TODO: put_directory +} |