pub struct SecretState {
pub version: u32,
/* private fields */
}Expand description
State of all generated secrets for a release
This is persisted to Kubernetes and loaded before each operation.
Fields§
§version: u32Schema version for future migrations
Implementations§
Source§impl SecretState
impl SecretState
Sourcepub const CURRENT_VERSION: u32 = 1u32
pub const CURRENT_VERSION: u32 = 1u32
Current schema version
Sourcepub fn get(&self, name: &str) -> Option<&SecretEntry>
pub fn get(&self, name: &str) -> Option<&SecretEntry>
Get a secret by name
Sourcepub fn insert(&mut self, name: String, entry: SecretEntry)
pub fn insert(&mut self, name: String, entry: SecretEntry)
Insert a new secret
Sourcepub fn mark_clean(&mut self)
pub fn mark_clean(&mut self)
Mark as clean (after persisting)
Sourcepub fn iter(&self) -> impl Iterator<Item = (&str, &SecretEntry)>
pub fn iter(&self) -> impl Iterator<Item = (&str, &SecretEntry)>
Get all secrets
Trait Implementations§
Source§impl Clone for SecretState
impl Clone for SecretState
Source§fn clone(&self) -> SecretState
fn clone(&self) -> SecretState
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 SecretState
impl Debug for SecretState
Source§impl Default for SecretState
impl Default for SecretState
Source§fn default() -> SecretState
fn default() -> SecretState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SecretState
impl<'de> Deserialize<'de> for SecretState
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
Source§impl PartialEq for SecretState
impl PartialEq for SecretState
Auto Trait Implementations§
impl Freeze for SecretState
impl RefUnwindSafe for SecretState
impl Send for SecretState
impl Sync for SecretState
impl Unpin for SecretState
impl UnwindSafe for SecretState
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