Trait reproto_repository::Index [] [src]

pub trait Index {
    fn resolve(
        &self,
        package: &RpPackage,
        range: &Range
    ) -> Result<Vec<Deployment>>;
fn resolve_by_prefix(
        &self,
        package: &RpPackage
    ) -> Result<Vec<(Deployment, RpPackage)>>;
fn all(&self, package: &RpPackage) -> 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: &RelativePath
    ) -> Result<Box<Objects>>; fn update(&self) -> Result<Vec<Update>> { ... } }

Required Methods

Resolve the given version of a package.

Resolve the given packages by prefix.

Get all versions available of a given package.

The returned versions are sorted.

Get an objects URL as configured in the index.

If relative, will cause objects to be loaded from the same repository as the index.

Load objects relative to the index repository.

Provided Methods

Update local caches related to the index.

Implementors