pub struct CapTracer { /* private fields */ }Expand description
Phase D: Capability Tracer for audit trail
Implementations§
Source§impl CapTracer
impl CapTracer
pub fn new() -> Self
Sourcepub async fn record_operation(
&self,
operation: &str,
actor: &str,
resource: &Cid,
capability: &Cap,
success: bool,
details: &str,
)
pub async fn record_operation( &self, operation: &str, actor: &str, resource: &Cid, capability: &Cap, success: bool, details: &str, )
Record capability operation
Sourcepub async fn get_audit_trail(&self, resource: &Cid) -> Vec<CapTraceEntry>
pub async fn get_audit_trail(&self, resource: &Cid) -> Vec<CapTraceEntry>
Get audit trail for resource
Sourcepub async fn get_actor_operations(&self, actor: &str) -> Vec<CapTraceEntry>
pub async fn get_actor_operations(&self, actor: &str) -> Vec<CapTraceEntry>
Get operations by actor
Auto Trait Implementations§
impl !RefUnwindSafe for CapTracer
impl !UnwindSafe for CapTracer
impl Freeze for CapTracer
impl Send for CapTracer
impl Sync for CapTracer
impl Unpin for CapTracer
impl UnsafeUnpin for CapTracer
Blanket Implementations§
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
Mutably borrows from an owned value. Read more