Skip to main content

PamAccessConnectorRotationJobsApi

Trait PamAccessConnectorRotationJobsApi 

Source
pub trait PamAccessConnectorRotationJobsApi: Send + Sync {
    // Required methods
    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 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;
}

Required Methods§

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,

POST /access-connectors/rotation/jobs/{id}/claim 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,

GET /access-connectors/rotation/jobs 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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§