Skip to content
Clone
ef0b83a
29 lines 651 B Rust
use crate::share::errors::GitError;
#[derive(Debug, Clone)]
pub struct GitCredential {
pub username: String,
pub secret: String,
}
impl GitCredential {
#[must_use]
pub fn new(username: impl Into<String>, secret: impl Into<String>) -> Self {
Self {
username: username.into(),
secret: secret.into(),
}
}
}
pub async fn mirror_fetch(
_label: &str,
_dir: &std::path::Path,
_url: &str,
_credential: Option<&GitCredential>,
_timeout_secs: u64,
) -> Result<(), GitError> {
Err(GitError::Unimplemented(
"mirror fetch is served by KenShell RemoteService",
))
}