Struct buildchain::Store
[−]
[src]
pub struct Store { /* fields omitted */ }
Methods
impl Store
[src]
fn new<P: AsRef<Path>>(basedir: P) -> Store
[src]
fn remove_tmp_dir(&self) -> Result<(), String>
[src]
fn temp_path(&self) -> PathBuf
[src]
fn object_path(&self, key: &[u8; 48]) -> PathBuf
[src]
fn block_path(&self, sig: &[u8; 64]) -> PathBuf
[src]
fn import_object<P: AsRef<Path>>(&self, src: P) -> Result<[u8; 48], String>
[src]
fn import_artifacts(&self, time: u64) -> Result<Manifest, String>
[src]
fn write_object(&self, object: &[u8]) -> Result<[u8; 48], String>
[src]
fn write_manifest(&self, object: &[u8]) -> Result<[u8; 48], String>
[src]
fn open_object(&self, key: &[u8; 48]) -> Result<File>
[src]
fn write_block(&self, block: &[u8; 400]) -> Result<[u8; 64], String>
[src]
fn write_tail(
&self,
project: &str,
branch: &str,
block: &[u8; 400]
) -> Result<[u8; 64], String>
[src]
&self,
project: &str,
branch: &str,
block: &[u8; 400]
) -> Result<[u8; 64], String>