Skip to main content

Auditor

Trait Auditor 

Source
pub trait Auditor:
    Send
    + Sync
    + Debug {
    // Required method
    fn append<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        command_path: &'life1 str,
        args: &'life2 ValueMap,
        identity: &'life3 str,
        result: &'life4 str,
        reason: &'life5 str,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
}
Expand description

Audit hook called for success, error, denied, auth-error, and dry-run outcomes.

Required Methods§

Source

fn append<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, command_path: &'life1 str, args: &'life2 ValueMap, identity: &'life3 str, result: &'life4 str, reason: &'life5 str, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Appends an audit record.

Implementors§