Struct reproto_repository::Repository
[−]
[src]
pub struct Repository { /* fields omitted */ }
Methods
impl Repository
[src]
pub fn new(index: Box<Index>, objects: Box<Objects>) -> Repository
[src]
pub fn update(&self) -> Result<Vec<Update>>
[src]
pub fn publish<O>(
&mut self,
object: O,
package: &RpPackage,
version: &Version,
force: bool
) -> Result<()> where
O: AsRef<Object>,
[src]
&mut self,
object: O,
package: &RpPackage,
version: &Version,
force: bool
) -> Result<()> where
O: AsRef<Object>,
pub fn all(&self, package: &RpPackage) -> Result<Vec<Deployment>>
[src]
Get all deployments in this repository.
pub fn get_object(
&mut self,
deployment: &Deployment
) -> Result<Option<Box<Object>>>
[src]
&mut self,
deployment: &Deployment
) -> Result<Option<Box<Object>>>
Get the object for the specific deployment.
Trait Implementations
impl Resolver for Repository
[src]
fn resolve(&mut self, package: &RpRequiredPackage) -> Result<Vec<Resolved>>
[src]
Resolve the specified request.
fn resolve_by_prefix(&mut self, _: &RpPackage) -> Result<Vec<ResolvedByPrefix>>
[src]
Resolve by prefix.