Skip to main content

FederationBackend

Trait FederationBackend 

Source
pub trait FederationBackend: Send + Sync {
Show 14 methods // Required methods fn cleanup<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn create_auth_state<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, auth_state: AuthState, ) -> Pin<Box<dyn Future<Output = Result<AuthState, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn create_identity_provider<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, idp: IdentityProviderCreate, ) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn create_mapping<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, idp: Mapping, ) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_auth_state<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_identity_provider<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn delete_mapping<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_auth_state<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<AuthState>, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_identity_provider<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn get_mapping<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<Mapping>, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn list_identity_providers<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, state: &'life1 ServiceState, params: &'life2 IdentityProviderListParameters, ) -> Pin<Box<dyn Future<Output = Result<Vec<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn list_mappings<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, state: &'life1 ServiceState, params: &'life2 MappingListParameters, ) -> Pin<Box<dyn Future<Output = Result<Vec<Mapping>, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait; fn update_identity_provider<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, idp: IdentityProviderUpdate, ) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait; fn update_mapping<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, idp: MappingUpdate, ) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>> where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait;
}
Expand description

Backend driver interface for the Federation Provider.

Required Methods§

Source

fn cleanup<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Cleanup expired resources.

Source

fn create_auth_state<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, auth_state: AuthState, ) -> Pin<Box<dyn Future<Output = Result<AuthState, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create new authentication state.

Source

fn create_identity_provider<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, idp: IdentityProviderCreate, ) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create Identity provider.

Source

fn create_mapping<'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, idp: Mapping, ) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create mapping.

Source

fn delete_auth_state<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete authentication state.

Source

fn delete_identity_provider<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete identity provider.

Source

fn delete_mapping<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<(), FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete mapping.

Source

fn get_auth_state<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<AuthState>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get authentication state.

Source

fn get_identity_provider<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get single identity provider by ID.

Source

fn get_mapping<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, ) -> Pin<Box<dyn Future<Output = Result<Option<Mapping>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Get single mapping by ID.

Source

fn list_identity_providers<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, state: &'life1 ServiceState, params: &'life2 IdentityProviderListParameters, ) -> Pin<Box<dyn Future<Output = Result<Vec<IdentityProvider>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

List Identity Providers.

Source

fn list_mappings<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, state: &'life1 ServiceState, params: &'life2 MappingListParameters, ) -> Pin<Box<dyn Future<Output = Result<Vec<Mapping>, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

List Identity Providers.

Source

fn update_identity_provider<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, idp: IdentityProviderUpdate, ) -> Pin<Box<dyn Future<Output = Result<IdentityProvider, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update Identity provider.

Source

fn update_mapping<'a, 'life0, 'life1, 'async_trait>( &'life0 self, state: &'life1 ServiceState, id: &'a str, idp: MappingUpdate, ) -> Pin<Box<dyn Future<Output = Result<Mapping, FederationProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'a: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Update mapping.

Implementors§