pub struct CiSetupConfig {
pub ci_environment: CiEnvironment,
pub passphrase: String,
pub registry_path: PathBuf,
pub keychain: Box<dyn KeyStorage + Send + Sync>,
}Expand description
Configuration for CI/ephemeral identity.
Args:
ci_environment: The detected or specified CI platform.passphrase: Passphrase for key encryption (typically from env var).registry_path: Path to the ephemeral auths registry.keychain: The key storage backend (useMemoryKeyStoragefor CI).
Usage:
ⓘ
let config = CiSetupConfig {
ci_environment: CiEnvironment::GitHubActions,
passphrase: std::env::var("AUTHS_PASSPHRASE").unwrap(),
registry_path: PathBuf::from("/tmp/.auths"),
keychain: Box::new(memory_keychain),
};Fields§
§ci_environment: CiEnvironmentThe detected or specified CI platform.
passphrase: StringPassphrase for key encryption (typically from an environment variable).
registry_path: PathBufPath to the ephemeral auths registry directory.
keychain: Box<dyn KeyStorage + Send + Sync>Key storage backend (typically MemoryKeyStorage for CI).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CiSetupConfig
impl !RefUnwindSafe for CiSetupConfig
impl Send for CiSetupConfig
impl Sync for CiSetupConfig
impl Unpin for CiSetupConfig
impl UnsafeUnpin for CiSetupConfig
impl !UnwindSafe for CiSetupConfig
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