source/git: implement empty stubs

This commit is contained in:
2026-01-16 14:04:26 +09:00
parent eb61f4cd05
commit 3caa22c9d8

View File

@@ -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<HashSet<RepositoryInfo>> {
Ok(HashSet::new())
}
async fn get_repositories_by_organization(
&self,
_owner: &str,
_token: Option<&str>,
_recurse_groups: bool,
_filter: &RepositoryFilter,
) -> anyhow::Result<HashSet<RepositoryInfo>> {
Ok(HashSet::new())
}
async fn get_repositories_by_stars(
&self,
_owner: &str,
_token: Option<&str>,
_filter: &RepositoryFilter,
) -> anyhow::Result<HashSet<RepositoryInfo>> {
Ok(HashSet::new())
}
}
}