pub trait PolicyRpc: Send + Sync {
Show 33 methods
// Required methods
fn check<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PolicyCheck,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn issue_token<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 IssueToken,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn list_scopes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<ScopeList>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_policy<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PolicyInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn apply_template<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApplyTemplate,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn apply_draft<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ApplyDraft,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn rollback<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RollbackPolicy,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_history<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 GetHistory,
) -> Pin<Box<dyn Future<Output = Result<PolicyHistory>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_diff<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 GetDiff,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_draft_status<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<DraftStatus>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn add_grouping<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 AddGrouping,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn remove_grouping<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RemoveGrouping,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn set_branch_visibility<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SetBranchVisibility,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_event_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RegisterEventPrefix,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn subscribe_event_prefix<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 SubscribeEventPrefix,
) -> Pin<Box<dyn Future<Output = Result<EventPrefixAccess>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_pending_subscribers<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 GetPendingSubscribers,
) -> Pin<Box<dyn Future<Output = Result<PendingSubscribers>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn deposit_wrapped_keys<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 DepositWrappedKeys,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn resolve_service_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ResolveServiceKey,
) -> Pin<Box<dyn Future<Output = Result<ServiceKeyResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_service_key<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RegisterServiceKey,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn refresh_service_token<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RefreshServiceTokenRequest,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn exchange_wit<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ExchangeWit,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn check_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PolicyCheckBatch,
) -> Pin<Box<dyn Future<Output = Result<PolicyCheckBatchResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn revoke_credential<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RevokeCredential,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn check_credential_revocation<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CheckCredentialRevocation,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn register_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RegisterSession,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn revoke_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 RevokeSession,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn check_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CheckSession,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn exchange_delegated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ExchangeDelegated,
) -> Pin<Box<dyn Future<Output = Result<TokenInfo>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn check_mediated<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 MediatedPolicyCheck,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn resolve_session_primary<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 ResolveSessionPrimary,
) -> Pin<Box<dyn Future<Output = Result<SessionPrimary>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn admit_federate_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 AdmitFederateRequest,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn prepare_federate_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 PrepareFederateSession,
) -> Pin<Box<dyn Future<Output = Result<PreparedFederateSession>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn commit_federate_session<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 CommitFederateSession,
) -> Pin<Box<dyn Future<Output = Result<FederateCommittedSession>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}Expand description
Generated RPC trait for the Policy service.