diff --git a/src/sources/git.rs b/src/sources/git.rs index 3237e80..f5bdf38 100644 --- a/src/sources/git.rs +++ b/src/sources/git.rs @@ -1,11 +1,52 @@ +use std::collections::HashSet; + +use crate::sources::{KagamiSource, RepositoryFilter, RepositoryInfo}; + pub struct KagamiSourceGit { - host: String, + host: String, } -impl KagamiSourceGitea { - pub fn new(host: &str) -> Self { - Self { - host: host.to_string(), +impl KagamiSourceGit { + pub fn new(host: &str) -> Self { + Self { + host: host.to_string(), + } + } +} + +impl KagamiSource for KagamiSourceGit { + const NAME: &'static str = "git"; + const DEFAULT_HOST: &'static str = ""; + + fn api_base(&self) -> String { + "".to_string() + } + + async fn get_repositories_by_user( + &self, + _owner: &str, + _token: Option<&str>, + _filter: &RepositoryFilter, + ) -> anyhow::Result> { + Ok(HashSet::new()) + } + + async fn get_repositories_by_organization( + &self, + _owner: &str, + _token: Option<&str>, + _recurse_groups: bool, + _filter: &RepositoryFilter, + ) -> anyhow::Result> { + Ok(HashSet::new()) + } + + async fn get_repositories_by_stars( + &self, + _owner: &str, + _token: Option<&str>, + _filter: &RepositoryFilter, + ) -> anyhow::Result> { + Ok(HashSet::new()) } - } }