about summary refs log blame commit diff
path: root/tvix/store/src/client.rs
blob: 3b282eacdd7044316240f536df915ade42fc46b9 (plain) (tree)
1
2
3
4
5
6
7
8
9
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
}