ClamAV Private Mirror with Cache.
Switch branches/tags
Clone or download
mxplusb added flag and included vendor directories.
Signed-off-by: Mike Lloyd <mlloyd@pivotal.io>
Latest commit 390b0ae Nov 28, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
filedefs
vendor added flag and included vendor directories. Nov 28, 2017
.cfignore
.gitignore added flag and included vendor directories. Nov 28, 2017
.travis.yml added flag and included vendor directories. Nov 28, 2017
LICENSE.md added flag and included vendor directories. Nov 28, 2017
Procfile
README.md added flag and included vendor directories. Nov 28, 2017
doc.go
download.go added flag and included vendor directories. Nov 28, 2017
download_test.go added flag and included vendor directories. Nov 28, 2017
glide.lock added flag and included vendor directories. Nov 28, 2017
glide.yaml
main.go added flag and included vendor directories. Nov 28, 2017
manifest.yml
parser_test.go added flag and included vendor directories. Nov 28, 2017
parsers.go
types.go

README.md

ClamAV Private Mirror

license Build Status

How To Use

  • cf push

OR

  • glide install && go build -v . && ./clamav

What It Does

  1. Starts an asynchronous download of the current antivirus definitions.
    1. Downloads three databases:
      1. main
      2. bytecode
      3. daily
    2. Parses each database's header for similar versions.
    3. If there is a similar/related version, it also gets downloaded.
    4. Downloaded files are stored in-memory in a cache for client downloads.
  2. Initialises a cron job to download the new database definitions every hour.
  3. Starts the web server and serves from cache.
  4. Evicts files from cache every 3 hours to prevent stale definitions.

Contributing

  • Keep It Simple.
  • The standard testing library is awesome. Let's keep using it.

To unzip the CVD files: cd filedefs/ && tail -c $(expr $(wc -c $FILE.cvd | awk '{print $1}') - 512) $FILE.cvd | tar zxvf -