summaryrefslogtreecommitdiff
path: root/morphcacheserver
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-07 13:17:13 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-09-07 13:46:35 +0100
commit1a0e40d854d37f81e9cdaf8bb23e480790614d2a (patch)
treed1e7beaa8d10c6356f3ca918a98ba0fd7430e4f6 /morphcacheserver
parent465e830d1d6d2c51425e2418b8e802a95145b6ee (diff)
downloadmorph-cache-server-1a0e40d854d37f81e9cdaf8bb23e480790614d2a.tar.gz
Support for fetching artifacts to the cache
Rather than pushing artifacts to the cache, this method allows the caller to specify a host and artifact which the cache server will then fetch into its local cache. It takes the following arguments: host=hostname:port artifact=artifactname This is transformed into a fetch to: http://hostname:port/artifacts?basename=artifactname Which is then fetched into the cache under the given name. The return from this is a JSON object of the form: { "filename": artifactname, "size": NBYTES_SIZE_OF_FILE, "used": NBYTES_DISK_SPACE_USED }
Diffstat (limited to 'morphcacheserver')
0 files changed, 0 insertions, 0 deletions