Auditor is notified when noteworthy events happen, for example when a file is encrypted or decrypted.
| 84 | // Auditor is notified when noteworthy events happen, |
| 85 | // for example when a file is encrypted or decrypted. |
| 86 | type Auditor interface { |
| 87 | // Handle() takes an audit event and attempts to persists it; |
| 88 | // how it is persisted and how errors are handled is up to the |
| 89 | // implementation of this interface. |
| 90 | Handle(event interface{}) |
| 91 | } |
| 92 | |
| 93 | // DecryptEvent contains fields relevant to a decryption event |
| 94 | type DecryptEvent struct { |
no outgoing calls
no test coverage detected