pub struct PamAccessConnectorRotationJobsApiClient {
configuration: Arc<Configuration>,
}Fields§
§configuration: Arc<Configuration>Implementations§
Source§impl PamAccessConnectorRotationJobsApiClient
impl PamAccessConnectorRotationJobsApiClient
pub fn new(configuration: Arc<Configuration>) -> Self
Trait Implementations§
Source§impl PamAccessConnectorRotationJobsApi for PamAccessConnectorRotationJobsApiClient
impl PamAccessConnectorRotationJobsApi for PamAccessConnectorRotationJobsApiClient
Source§fn claim<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<RotationClaimResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
fn claim<'a, 'life0, 'async_trait>(
&'life0 self,
id: Uuid,
) -> Pin<Box<dyn Future<Output = Result<RotationClaimResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait,
Atomically claims a job – first-claim-wins – and returns the work snapshot needed to execute the rotation. 409 means another access connector won the race (claim a different job); 404 means this access connector was never eligible to claim it (no assignment, wrong organization, or a disabled target/config).
Source§fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ClaimableRotationJobResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_all<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ClaimableRotationJobResponseModelListResponseModel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
The calling access connector’s currently claimable jobs on its assigned targets – the poll. Doubles as a heartbeat when idle. Heartbeat contract: an access connector MUST call some connector-facing rotation endpoint at an interval shorter than ConnectorOfflineAfter for as long as it holds a claim, or the release sweep may reclaim the job once the claim’s lease also expires; an access connector SHOULD poll no more often than HeartbeatMinInterval, since the heartbeat write is conditional on that interval and polling faster gains nothing.
Auto Trait Implementations§
impl !RefUnwindSafe for PamAccessConnectorRotationJobsApiClient
impl !UnwindSafe for PamAccessConnectorRotationJobsApiClient
impl Freeze for PamAccessConnectorRotationJobsApiClient
impl Send for PamAccessConnectorRotationJobsApiClient
impl Sync for PamAccessConnectorRotationJobsApiClient
impl Unpin for PamAccessConnectorRotationJobsApiClient
impl UnsafeUnpin for PamAccessConnectorRotationJobsApiClient
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
unsafe fn consume_handle(handle: Handle) -> Arc<T> ⓘ
Arc<> Read more