Struct elba::index::Index [−][src]
Struct Index
defines a single index.
Indices must be sharded by group name.
Fields
id: IndexRes
Indicates identifying information about the index
path: DirLock
Indicates where this index is stored on-disk.
config: IndexConfig
The configuration of this index.
Methods
impl Index
[src]
impl Index
pub fn from_disk(res: DirectRes, path: DirLock) -> Res<Self>
[src]
pub fn from_disk(res: DirectRes, path: DirLock) -> Res<Self>
Creates a new empty package index directly from a Url and a local path.
pub fn entries(&self, name: &Name) -> Res<IndexMap<Version, ResolvedEntry>>
[src]
pub fn entries(&self, name: &Name) -> Res<IndexMap<Version, ResolvedEntry>>
pub fn depends(
&self
) -> impl Iterator<Item = &IndexRes>
[src]
pub fn depends(
&self
) -> impl Iterator<Item = &IndexRes>