rskit_git/auth/signing.rs
1//! Commit signing types.
2
3use std::path::PathBuf;
4
5/// Supported commit signing configurations.
6#[derive(Debug, Clone)]
7#[non_exhaustive]
8pub enum SigningConfig {
9 /// Sign commits with GPG.
10 Gpg {
11 /// Optional key identifier.
12 key_id: Option<String>,
13 },
14 /// Sign commits with SSH.
15 Ssh {
16 /// Path to the SSH signing key.
17 key_path: PathBuf,
18 },
19 /// Sign commits with an X.509 certificate.
20 X509 {
21 /// Path to the certificate file.
22 cert_path: PathBuf,
23 /// Path to the private key file.
24 key_path: PathBuf,
25 },
26}