pub struct LocalDriver { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Driver for LocalDriver
impl Driver for LocalDriver
Source§fn version(&self, org: &OrgId, name: &str) -> Result<u64>
fn version(&self, org: &OrgId, name: &str) -> Result<u64>
The current version only: cheap, for polling.
fn inspect(&self, org: &OrgId, name: &str) -> Result<SecretMeta>
Source§fn list(&self, org: &OrgId) -> Result<Vec<SecretMeta>>
fn list(&self, org: &OrgId) -> Result<Vec<SecretMeta>>
Every secret in the org this driver holds: metadata, never values.
Source§fn create(
&self,
org: &OrgId,
name: &str,
value: &[u8],
labels: &BTreeMap<String, String>,
) -> Result<SecretMeta>
fn create( &self, org: &OrgId, name: &str, value: &[u8], labels: &BTreeMap<String, String>, ) -> Result<SecretMeta>
A new secret at version 1; fails if it exists.
Source§fn set(&self, org: &OrgId, name: &str, value: &[u8]) -> Result<u64>
fn set(&self, org: &OrgId, name: &str, value: &[u8]) -> Result<u64>
A new value; returns the new version. Creates the secret if missing.
fn delete(&self, org: &OrgId, name: &str) -> Result<()>
Auto Trait Implementations§
impl !Freeze for LocalDriver
impl RefUnwindSafe for LocalDriver
impl Send for LocalDriver
impl Sync for LocalDriver
impl Unpin for LocalDriver
impl UnsafeUnpin for LocalDriver
impl UnwindSafe for LocalDriver
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