pub struct BoxTransientSecretStore { /* private fields */ }Expand description
The sole Box-owned transient Secret filesystem boundary.
Callers may create private scopes below one pre-mounted Linux tmpfs, but Box never creates that backing mount or falls back to disk storage.
Implementations§
Source§impl BoxTransientSecretStore
impl BoxTransientSecretStore
pub fn new(root: impl Into<PathBuf>) -> Self
pub fn root(&self) -> &Path
pub async fn require_ready(&self) -> RuntimeResult<()>
Sourcepub async fn private_scope(&self, scope: &str) -> RuntimeResult<Self>
pub async fn private_scope(&self, scope: &str) -> RuntimeResult<Self>
Create or reopen one private namespace inside the same validated tmpfs.
Sourcepub async fn materialize_environment(
&self,
identity: &str,
bindings: Vec<(String, BoxSecretMaterial)>,
) -> RuntimeResult<BoxSecretEnvironmentProjection>
pub async fn materialize_environment( &self, identity: &str, bindings: Vec<(String, BoxSecretMaterial)>, ) -> RuntimeResult<BoxSecretEnvironmentProjection>
Materialize caller-provided environment values and return only the non-sensitive mount/manifest projection used by BoxConfig.
Sourcepub fn configure_vm(&self, manager: &mut VmManager) -> RuntimeResult<()>
pub fn configure_vm(&self, manager: &mut VmManager) -> RuntimeResult<()>
Mark this already-validated tmpfs as the only source whose single-file MicroVM mounts may be staged inside tmpfs rather than copied to disk.
pub async fn cleanup_identity(&self, identity: &str) -> RuntimeResult<()>
pub fn cleanup_identity_sync(&self, identity: &str) -> RuntimeResult<()>
Trait Implementations§
Source§impl Clone for BoxTransientSecretStore
impl Clone for BoxTransientSecretStore
Source§fn clone(&self) -> BoxTransientSecretStore
fn clone(&self) -> BoxTransientSecretStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BoxTransientSecretStore
impl RefUnwindSafe for BoxTransientSecretStore
impl Send for BoxTransientSecretStore
impl Sync for BoxTransientSecretStore
impl Unpin for BoxTransientSecretStore
impl UnsafeUnpin for BoxTransientSecretStore
impl UnwindSafe for BoxTransientSecretStore
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more