Trait fluvio_auth::AuthContext[][src]

pub trait AuthContext {
#[must_use]    fn allow_type_action<'life0, 'async_trait>(
        &'life0 self,
        ty: ObjectType,
        action: TypeAction
    ) -> Pin<Box<dyn Future<Output = Result<bool, AuthError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] fn allow_instance_action<'life0, 'life1, 'async_trait>(
        &'life0 self,
        ty: ObjectType,
        action: InstanceAction,
        key: &'life1 str
    ) -> Pin<Box<dyn Future<Output = Result<bool, AuthError>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }

Required methods

#[must_use]fn allow_type_action<'life0, 'async_trait>(
    &'life0 self,
    ty: ObjectType,
    action: TypeAction
) -> Pin<Box<dyn Future<Output = Result<bool, AuthError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

check if any allow type specific action can be allowed

#[must_use]fn allow_instance_action<'life0, 'life1, 'async_trait>(
    &'life0 self,
    ty: ObjectType,
    action: InstanceAction,
    key: &'life1 str
) -> Pin<Box<dyn Future<Output = Result<bool, AuthError>> + Send + 'async_trait>> where
    'life0: 'async_trait,
    'life1: 'async_trait,
    Self: 'async_trait, 
[src]

check if specific instance of action can be permitted

Loading content...

Implementors

Loading content...