pephub-client 0.2.0

HTTP client for the PEPHub registry API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use peprs_core::project::Project;

pub trait PEPHubClient {
    fn pull(&self) -> Project;

    fn push(
        &self,
        project: Project,
        namespace: &str,
        name: &str,
        tag: Option<&str>,
        private: Option<bool>,
        force: Option<bool>,
    );

    fn delete(&self, namespace: &str, name: &str, tag: Option<&str>);
}