pub enum SecretProviderConfig {
Keychain,
EnvironmentVariable {
prefix: String,
},
File {
path: String,
format: SecretFileFormat,
},
External {
provider_type: ExternalSecretProvider,
config: HashMap<String, String>,
},
}Expand description
Configuration for a secret provider.
Variants§
Keychain
Platform keychain (default).
EnvironmentVariable
Environment variable (for CI/CD).
File
File-based secrets.
External
External secret manager.
Implementations§
Source§impl SecretProviderConfig
impl SecretProviderConfig
Sourcepub fn environment_variable(prefix: impl Into<String>) -> Self
pub fn environment_variable(prefix: impl Into<String>) -> Self
Create an environment variable provider config.
Sourcepub fn file(path: impl Into<String>, format: SecretFileFormat) -> Self
pub fn file(path: impl Into<String>, format: SecretFileFormat) -> Self
Create a file provider config.
Sourcepub fn external(provider_type: ExternalSecretProvider) -> Self
pub fn external(provider_type: ExternalSecretProvider) -> Self
Create an external provider config.
Trait Implementations§
Source§impl Clone for SecretProviderConfig
impl Clone for SecretProviderConfig
Source§fn clone(&self) -> SecretProviderConfig
fn clone(&self) -> SecretProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecretProviderConfig
impl Debug for SecretProviderConfig
Source§impl<'de> Deserialize<'de> for SecretProviderConfig
impl<'de> Deserialize<'de> for SecretProviderConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SecretProviderConfig
impl RefUnwindSafe for SecretProviderConfig
impl Send for SecretProviderConfig
impl Sync for SecretProviderConfig
impl Unpin for SecretProviderConfig
impl UnwindSafe for SecretProviderConfig
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