pub struct BundleSource { /* private fields */ }Implementations§
Source§impl BundleSource
impl BundleSource
pub async fn new<I>(ctx: &Context, options: I) -> Result<BundleSource>
pub async fn close(&self) -> Result<()>
pub fn get_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
pub fn get_x509_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
pub fn get_jwt_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
pub async fn wait_until_updated(&self, ctx: &Context) -> Result<()>
pub fn updated(&self) -> Receiver<u64>
Trait Implementations§
Source§impl Source for BundleSource
impl Source for BundleSource
Source§fn get_bundle_for_trust_domain(
&self,
trust_domain: TrustDomain,
) -> Result<Bundle>
fn get_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
Returns the SPIFFE bundle for the given trust domain.
Source§impl Source for BundleSource
impl Source for BundleSource
Source§fn get_x509_bundle_for_trust_domain(
&self,
trust_domain: TrustDomain,
) -> Result<Bundle>
fn get_x509_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
Returns the X.509 bundle for the given trust domain.
Source§impl Source for BundleSource
impl Source for BundleSource
Source§fn get_jwt_bundle_for_trust_domain(
&self,
trust_domain: TrustDomain,
) -> Result<Bundle>
fn get_jwt_bundle_for_trust_domain( &self, trust_domain: TrustDomain, ) -> Result<Bundle>
Returns the JWT bundle for the given trust domain.
Auto Trait Implementations§
impl !Freeze for BundleSource
impl !RefUnwindSafe for BundleSource
impl Send for BundleSource
impl Sync for BundleSource
impl Unpin for BundleSource
impl !UnwindSafe for BundleSource
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request