pub struct ServiceMeshBridge { /* private fields */ }Implementations§
Source§impl ServiceMeshBridge
impl ServiceMeshBridge
pub fn new(cfg: ServiceMeshBridgeConfig) -> Self
Sourcepub fn accept_envoy(
&self,
entry: &XfccEntry,
) -> Result<ActorIdentity, BridgeError>
pub fn accept_envoy( &self, entry: &XfccEntry, ) -> Result<ActorIdentity, BridgeError>
Project a parsed XFCC entry into a TrustForge identity. Inputs
should already be the output of parse_xfcc; this method is
retained for the existing sprint-5 callers that build entries
by hand.
pub fn accept_istio( &self, spiffe_id: &str, ) -> Result<ActorIdentity, BridgeError>
pub fn accept_linkerd( &self, client_id: &str, ) -> Result<ActorIdentity, BridgeError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServiceMeshBridge
impl RefUnwindSafe for ServiceMeshBridge
impl Send for ServiceMeshBridge
impl Sync for ServiceMeshBridge
impl Unpin for ServiceMeshBridge
impl UnsafeUnpin for ServiceMeshBridge
impl UnwindSafe for ServiceMeshBridge
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> 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