pub struct CaBackendPool { /* private fields */ }Expand description
Routes enrollment requests to healthy CA backends via the HA pool.
Wraps the HA CaPool with retry logic and timeout management
for enrollment operations (simpleenroll, simplereenroll, serverkeygen).
Implementations§
Source§impl CaBackendPool
impl CaBackendPool
Sourcepub fn new(ha_pool: Arc<CaPool>, config: CaBackendPoolConfig) -> Self
pub fn new(ha_pool: Arc<CaPool>, config: CaBackendPoolConfig) -> Self
Create a new backend pool wrapping the HA pool.
Sourcepub async fn route_enrollment(
&self,
csr_der: &[u8],
profile: &str,
) -> Result<Vec<u8>, CaBackendError>
pub async fn route_enrollment( &self, csr_der: &[u8], profile: &str, ) -> Result<Vec<u8>, CaBackendError>
Route a certificate issuance request to a healthy CA.
Selects a CA via the HA strategy, sends the request, and retries
with the next available CA on failure (up to max_retries).
§Arguments
csr_der- DER-encoded CSR to submitprofile- Enrollment profile name
§Returns
DER-encoded issued certificate on success.
Auto Trait Implementations§
impl Freeze for CaBackendPool
impl !RefUnwindSafe for CaBackendPool
impl Send for CaBackendPool
impl Sync for CaBackendPool
impl Unpin for CaBackendPool
impl UnsafeUnpin for CaBackendPool
impl !UnwindSafe for CaBackendPool
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>
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