2024-02-16 20:00:55 +01:00
|
|
|
use async_trait::async_trait;
|
|
|
|
|
|
|
|
use super::ServerApi;
|
|
|
|
use crate::{
|
2024-02-19 22:07:51 +01:00
|
|
|
config::{packages::PackageType, ApiType, Config},
|
2024-02-16 20:00:55 +01:00
|
|
|
error::*,
|
|
|
|
};
|
|
|
|
pub struct Gitea;
|
|
|
|
|
|
|
|
#[async_trait]
|
|
|
|
impl ServerApi for Gitea {
|
|
|
|
async fn init(&mut self, cfg: &Config) -> Result<()> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
async fn push_release(&mut self) -> Result<()> {
|
|
|
|
todo!()
|
|
|
|
}
|
2024-02-19 22:07:51 +01:00
|
|
|
async fn push_pkg(&mut self, pkg_type: PackageType) -> Result<()> {
|
|
|
|
todo!()
|
|
|
|
}
|
2024-02-16 20:00:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
impl Gitea {
|
|
|
|
pub async fn build(cfg: &Config) -> Result<Self> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|