Scans a file for virus and persists it with the save
function.
Scans a file for virus and persists it with the save
function.
By default, any infected files will be immediately removed using the
remove
function.
Scans the file for virus without persisting.
Scans the file for virus without persisting.
Scans file for virus and writes to a temporary file.
Scans file for virus and writes to a temporary file.
Graph that broadcasts each chunk from the incoming stream to both sinks,
before materializing the result from both into a ScannedBody
.
Graph that broadcasts each chunk from the incoming stream to both sinks,
before materializing the result from both into a ScannedBody
.
Specifically sets up a ClamSink
that is ready to receive the incoming
stream.
Specifically sets up a ClamSink
that is ready to receive the incoming
stream. Or one that is cancelled with success status.
Controlled by the config property clammyscan.scanDisabled
.
Will validate the filename based on the configured regular expression defined in application.conf.
Will validate the filename based on the configured regular expression defined in application.conf.
Function specifically for handling the ClamError cases in the validation step.
Function specifically for handling the ClamError cases in the validation step. The logic here is highly dependent on how the parser is configured.
Execute a ping against clamd
Execute a ping against clamd
Determines the two sinks that are to be used for processing the stream.
Determines the two sinks that are to be used for processing the stream.
The function will try to validate the filename against the
clammyscan.validFilenameRegex
property if configured. In the case of an
invalid filename, two cancelled sinks are returned.
Get the clamd stats
Get the clamd stats
Get the clamd version string
Get the clamd version string