pub struct SecretSession { /* private fields */ }Implementations§
Source§impl SecretSession
impl SecretSession
pub async fn start( executable: &SecretExecutable, startup_timeout: Duration, request_timeout: Duration, ) -> Result<Self, SecretRuntimeError>
pub fn capabilities(&self) -> &[String]
pub async fn resolve( &mut self, binding: &SecretBinding, action_id: &str, ) -> Result<Zeroizing<Vec<u8>>, SecretRuntimeError>
pub async fn inspect_binding( &mut self, binding: &SecretBinding, action_id: &str, ) -> Result<InspectBindingResponse, SecretRuntimeError>
pub async fn store( &mut self, binding: &SecretBinding, action_id: &str, value: &[u8], allow_overwrite: bool, allow_create: bool, expected_previous_document_sha256: &str, ) -> Result<String, SecretRuntimeError>
pub async fn delete( &mut self, binding: &SecretBinding, action_id: &str, ) -> Result<String, SecretRuntimeError>
pub async fn resolve_public_artifact( &mut self, binding: &SecretBinding, action_id: &str, ) -> Result<ResolvePublicArtifactResponse, SecretRuntimeError>
pub async fn store_public_artifact( &mut self, binding: &SecretBinding, action_id: &str, value: &[u8], expected_previous_sha256: &str, ) -> Result<StorePublicArtifactResponse, SecretRuntimeError>
pub async fn inspect_recipient_policy( &mut self, action_id: &str, identity_id: &str, age_recipient: &str, recipient_alias: &str, creation_rule_path_regex: &str, document_references: Vec<String>, ) -> Result<InspectRecipientPolicyResponse, SecretRuntimeError>
pub async fn apply_recipient_policy( &mut self, action_id: &str, identity_id: &str, age_recipient: &str, recipient_alias: &str, creation_rule_path_regex: &str, expected_policy_sha256: &str, documents: Vec<RecipientPolicyDocument>, expected_previous_age_recipient: Option<&str>, ) -> Result<ApplyRecipientPolicyResponse, SecretRuntimeError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for SecretSession
impl !RefUnwindSafe for SecretSession
impl Send for SecretSession
impl Sync for SecretSession
impl Unpin for SecretSession
impl UnsafeUnpin for SecretSession
impl !UnwindSafe for SecretSession
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].