pub struct MockPamAccessConnectorRotationJobsApi {
PamAccessConnectorRotationJobsApi_expectations: MockPamAccessConnectorRotationJobsApi_PamAccessConnectorRotationJobsApi,
}Fields§
§PamAccessConnectorRotationJobsApi_expectations: MockPamAccessConnectorRotationJobsApi_PamAccessConnectorRotationJobsApiImplementations§
Source§impl MockPamAccessConnectorRotationJobsApi
impl MockPamAccessConnectorRotationJobsApi
Sourcepub fn checkpoint(&mut self)
pub fn checkpoint(&mut self)
Validate that all current expectations for all methods have been satisfied, and discard them.
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new mock object with no expectations.
This method will not be generated if the real struct
already has a new method. However, it will be
generated if the struct implements a trait with a new
method. The trait’s new method can still be called
like <MockX as TraitY>::new
Source§impl MockPamAccessConnectorRotationJobsApi
impl MockPamAccessConnectorRotationJobsApi
Sourcepub fn expect_claim(&mut self) -> &mut Expectation
pub fn expect_claim(&mut self) -> &mut Expectation
Create an Expectation for mocking the claim method
Sourcepub fn expect_get_all(&mut self) -> &mut Expectation
pub fn expect_get_all(&mut self) -> &mut Expectation
Create an Expectation for mocking the get_all method
Trait Implementations§
Source§impl PamAccessConnectorRotationJobsApi for MockPamAccessConnectorRotationJobsApi
impl PamAccessConnectorRotationJobsApi for MockPamAccessConnectorRotationJobsApi
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,
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,
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.
Auto Trait Implementations§
impl Freeze for MockPamAccessConnectorRotationJobsApi
impl RefUnwindSafe for MockPamAccessConnectorRotationJobsApi
impl Send for MockPamAccessConnectorRotationJobsApi
impl Sync for MockPamAccessConnectorRotationJobsApi
impl Unpin for MockPamAccessConnectorRotationJobsApi
impl UnsafeUnpin for MockPamAccessConnectorRotationJobsApi
impl UnwindSafe for MockPamAccessConnectorRotationJobsApi
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