pub struct AzureManagedIdentityServiceAccount { /* private fields */ }Expand description
Azure User-Assigned Managed Identity service account binding implementation
Note: Azure impersonation works differently than AWS/GCP. The managed identity must already be attached to the workload (Container App, VM, etc.) at provisioning time. This binding allows selecting which attached identity to use at runtime by providing its client_id to the Azure Identity SDK.
Implementations§
Source§impl AzureManagedIdentityServiceAccount
impl AzureManagedIdentityServiceAccount
pub fn new( config: AzureClientConfig, binding: AzureServiceAccountBinding, ) -> AzureManagedIdentityServiceAccount
Trait Implementations§
impl Binding for AzureManagedIdentityServiceAccount
Source§impl ServiceAccount for AzureManagedIdentityServiceAccount
impl ServiceAccount for AzureManagedIdentityServiceAccount
Source§fn get_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountInfo, AlienError<ErrorData>>> + Send + 'async_trait>>where
'life0: 'async_trait,
AzureManagedIdentityServiceAccount: 'async_trait,
fn get_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ServiceAccountInfo, AlienError<ErrorData>>> + Send + 'async_trait>>where
'life0: 'async_trait,
AzureManagedIdentityServiceAccount: 'async_trait,
Gets information about the service account
Source§fn impersonate<'life0, 'async_trait>(
&'life0 self,
_request: ImpersonationRequest,
) -> Pin<Box<dyn Future<Output = Result<ClientConfig, AlienError<ErrorData>>> + Send + 'async_trait>>where
'life0: 'async_trait,
AzureManagedIdentityServiceAccount: 'async_trait,
fn impersonate<'life0, 'async_trait>(
&'life0 self,
_request: ImpersonationRequest,
) -> Pin<Box<dyn Future<Output = Result<ClientConfig, AlienError<ErrorData>>> + Send + 'async_trait>>where
'life0: 'async_trait,
AzureManagedIdentityServiceAccount: 'async_trait,
Impersonates the service account and returns credentials as a ClientConfig. Read more
Auto Trait Implementations§
impl Freeze for AzureManagedIdentityServiceAccount
impl RefUnwindSafe for AzureManagedIdentityServiceAccount
impl Send for AzureManagedIdentityServiceAccount
impl Sync for AzureManagedIdentityServiceAccount
impl Unpin for AzureManagedIdentityServiceAccount
impl UnsafeUnpin for AzureManagedIdentityServiceAccount
impl UnwindSafe for AzureManagedIdentityServiceAccount
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
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 moreSource§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::RequestCreates a shared type from an unshared type.