SecretStore
pub struct SecretStore { /* private fields */ }A Compute Secret Store.
A secret store name has a maximum length of 255 bytes and must contain only letters, numbers, dashes (-), underscores (_), and periods (.).
Methods
contains
View sourceReturn true if the secret store contains a secret with the given name.
Parameters
- self: &Self
- name: &str
Returns
Result<bool, LookupError>
from_handle
View sourceCreate a SecretStore from a SecretStoreHandle.
Parameters
- handle: SecretStoreHandle
Returns
Self
try_get
View sourceTry to lookup a Secret by name in this secret store.
If successful, this method returns Ok(Some(secret)) if the secret is found, or Ok(None)
if the secret was not found.
Parameters
- self: &Self
- name: &str
Returns