Struct lal::ArtifactoryBackend
[−]
[src]
pub struct ArtifactoryBackend { pub config: ArtifactoryConfig, pub cache: String, }
Everything we need for Artifactory to implement the Backend trait
Fields
config: ArtifactoryConfig
Artifactory config and credentials
cache: String
Cache directory
Methods
impl ArtifactoryBackend
[src]
fn new(cfg: &ArtifactoryConfig, cache: &str) -> Self
[src]
Trait Implementations
impl Backend for ArtifactoryBackend
[src]
Artifact backend trait for ArtifactoryBackend
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: Option<&str>) -> LalResult<Vec<u32>>
[src]
Get a list of versions for a component
fn get_latest_version(&self, name: &str, loc: Option<&str>) -> LalResult<u32>
[src]
Get the latest version of a component
fn get_tarball_url(
&self,
name: &str,
version: Option<u32>,
loc: Option<&str>
) -> LalResult<Component>
[src]
&self,
name: &str,
version: Option<u32>,
loc: Option<&str>
) -> LalResult<Component>
Get the tarball url of a Component
in a backend location If no version is given, return latest Read more
fn upload_artifact_dir(
&self,
name: &str,
version: u32,
env: Option<&str>
) -> LalResult<()>
[src]
&self,
name: &str,
version: u32,
env: Option<&str>
) -> LalResult<()>
Publish a release build (ARTIFACT dir) to a specific location
fn get_cache_dir(&self) -> String
[src]
Return the base directory to be used to dump cached downloads This has to be in here for CachedBackend
to have a straight dependency Read more
fn raw_download(&self, url: &str, dest: &PathBuf) -> LalResult<()>
[src]
Raw dowlnload of a url to a destination