pub struct CommitSigningContext {
pub key_storage: Arc<dyn KeyStorage + Send + Sync>,
pub passphrase_provider: Arc<dyn PassphraseProvider + Send + Sync>,
pub agent_signing: Arc<dyn AgentSigningPort + Send + Sync>,
}Expand description
Minimal dependency set for the commit signing workflow.
Avoids requiring the full AuthsContext
when only signing-related ports are needed (e.g. in the auths-sign binary).
Usage:
ⓘ
let deps = CommitSigningContext {
key_storage: Arc::from(keychain),
passphrase_provider: Arc::new(my_provider),
agent_signing: Arc::new(my_agent),
};
CommitSigningWorkflow::execute(&deps, params, Utc::now())?;Fields§
§key_storage: Arc<dyn KeyStorage + Send + Sync>Platform keychain or test fake for key material storage.
passphrase_provider: Arc<dyn PassphraseProvider + Send + Sync>Passphrase provider for key decryption during signing operations.
agent_signing: Arc<dyn AgentSigningPort + Send + Sync>Agent-based signing port for delegating operations to a running agent process.
Trait Implementations§
Source§impl From<&AuthsContext> for CommitSigningContext
impl From<&AuthsContext> for CommitSigningContext
Source§fn from(ctx: &AuthsContext) -> Self
fn from(ctx: &AuthsContext) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommitSigningContext
impl !RefUnwindSafe for CommitSigningContext
impl Send for CommitSigningContext
impl Sync for CommitSigningContext
impl Unpin for CommitSigningContext
impl UnsafeUnpin for CommitSigningContext
impl !UnwindSafe for CommitSigningContext
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more