Struct lal::LocalBackend
[−]
[src]
pub struct LocalBackend { pub config: LocalConfig, pub cache: String, }
Fields
config: LocalConfig
Local config
cache: String
Cache directory
Methods
impl LocalBackend
[src]
fn new(cfg: &LocalConfig, cache: &str) -> Self
[src]
Trait Implementations
impl Backend for LocalBackend
[src]
Artifact backend trait for LocalBackend
This is intended to be used by the caching trait CachedBackend
, but for
specific low-level use cases, these methods can be used directly.
fn get_versions(&self, name: &str, loc: &str) -> LalResult<Vec<u32>>
[src]
Get a list of versions for a component in descending order
fn get_latest_version(&self, name: &str, loc: &str) -> LalResult<u32>
[src]
Get the latest version of a component
fn get_component_info(
&self,
name: &str,
version: Option<u32>,
loc: &str
) -> LalResult<Component>
[src]
&self,
name: &str,
version: Option<u32>,
loc: &str
) -> LalResult<Component>
Get the version and location information of a component Read more
fn publish_artifact(&self, name: &str, version: u32, env: &str) -> LalResult<()>
[src]
Publish a release build's ARTIFACT to a specific location Read more
fn get_cache_dir(&self) -> String
[src]
Return the base directory to be used to dump cached downloads Read more
fn raw_fetch(&self, src: &str, dest: &PathBuf) -> LalResult<()>
[src]
Raw fetch of location to a destination Read more