Definitions of the communication structures used in edeposit.amqp.antivirus project.
Bases: antivirus.structures.ScanFile
Request to scan file.
Parameters: |
|
---|---|
Returns: | object – ScanResult |
Bases: antivirus.structures.UpdateDatabase
Request to update clamav database (= to run freshclam program).
Returns: | object – DatabaseUpdated |
---|
Bases: antivirus.structures.ScanResult
Result of the file scan.
Parameters: |
|
---|
{
"local_path": ("RESULT", "TYPE")
}
Where RESULT is “FOUND” or string like that and TYPE is name of the malware.
Note
When no malware is found, result is blank dict.
Bases: antivirus.structures.DatabaseUpdated
Response to UpdateDatabase.