Trait reproto_repository::Index
[−]
[src]
pub trait Index { fn resolve(
&self,
package: &RpPackage,
version_req: Option<&VersionReq>
) -> Result<Vec<Deployment>>; fn put_version(
&self,
checksum: &Checksum,
package: &RpPackage,
version: &Version,
force: bool
) -> Result<()>; fn get_deployments(
&self,
package: &RpPackage,
version: &Version
) -> Result<Vec<Deployment>>; fn objects_url(&self) -> Result<&str>; fn objects_from_index(&self, relative_path: &Path) -> Result<Box<Objects>>; fn update(&self) -> Result<()> { ... } }
Required Methods
fn resolve(
&self,
package: &RpPackage,
version_req: Option<&VersionReq>
) -> Result<Vec<Deployment>>
&self,
package: &RpPackage,
version_req: Option<&VersionReq>
) -> Result<Vec<Deployment>>
fn put_version(
&self,
checksum: &Checksum,
package: &RpPackage,
version: &Version,
force: bool
) -> Result<()>
&self,
checksum: &Checksum,
package: &RpPackage,
version: &Version,
force: bool
) -> Result<()>
fn get_deployments(
&self,
package: &RpPackage,
version: &Version
) -> Result<Vec<Deployment>>
&self,
package: &RpPackage,
version: &Version
) -> Result<Vec<Deployment>>
fn objects_url(&self) -> Result<&str>
Get an objects URL as configured in the index.
If relative, will cause objects to be loaded from the same repository as the index.
fn objects_from_index(&self, relative_path: &Path) -> Result<Box<Objects>>
Load objects relative to the index repository.
Provided Methods
Implementors
impl Index for NoIndex