Trait lal::CachedBackend [] [src]

pub trait CachedBackend {
    fn get_latest_supported_versions(
        &self,
        name: &str,
        environments: Vec<String>
    ) -> LalResult<Vec<u32>>;
fn retrieve_published_component(
        &self,
        name: &str,
        version: Option<u32>,
        env: &str
    ) -> LalResult<(PathBuf, Component)>;
fn retrieve_stashed_component(
        &self,
        name: &str,
        code: &str
    ) -> LalResult<PathBuf>;
fn unpack_published_component(
        &self,
        name: &str,
        version: Option<u32>,
        env: &str
    ) -> LalResult<Component>;
fn unpack_stashed_component(&self, name: &str, code: &str) -> LalResult<()>;
fn stash_output(&self, name: &str, code: &str) -> LalResult<()>; }

A secondary trait that builds upon the Backend trait

This wraps the common fetch commands in a caching layer on the cache dir.

Required Methods

Get the latest version of a component across all supported environments

Retrieve the location to a cached published component (downloading if necessary)

Retrieve the location to a stashed component

Retrieve and unpack a cached component in INPUT

Retrieve and unpack a stashed component to INPUT

Add a stashed component from a folder

Implementors