Skip to content
Clone
89109d2
37 lines 1001 B Rust
use serde::{Deserialize, Serialize};
use crate::service::GitService;
use crate::share::errors::GitError;
#[derive(Debug, Clone, Serialize, Deserialize, utoipa::ToSchema)]
pub struct VerifyResultDto {
pub signed: bool,
pub valid: bool,
pub key_id: Option<String>,
pub signer: Option<String>,
pub error_message: Option<String>,
}
impl GitService {
pub async fn signature_verify_commit(
&self,
_space_name: String,
_repo_name: String,
_sha: String,
) -> Result<VerifyResultDto, GitError> {
Err(GitError::Unimplemented(
"commit signature verification requires a KenShell SignatureService",
))
}
pub async fn signature_verify_tag(
&self,
_space_name: String,
_repo_name: String,
_name: String,
) -> Result<VerifyResultDto, GitError> {
Err(GitError::Unimplemented(
"tag signature verification requires a KenShell SignatureService",
))
}
}