Commit Graph

4 Commits

Author SHA1 Message Date
mpl 4acc10e6e4 serverconfig: idle synchandler when no localdisk as primary storage
Because no localdisk means either s3 or google is the primary,
and none of them support efficient replication.

1) Added a dummy synchandler constructor for when config has "idle"
2) Set "idle" for synchandler config when no localdisk
3) fixed corresponding tests

Also:
- added error (and test) when no localdisk and both s3 and google
in config
- added s3 + mysql test

http://camlistore.org/issue/201

Change-Id: I861fdca0c203bc0181ab6d548adab501ed98d2f0
2013-08-21 15:17:13 +02:00
mpl 62cb54b28f serverconfig: fix tests broken by status handler addition
Change-Id: I2dbf2f56e87d2f5043dd6299e151faa71631fb46
2013-06-10 01:21:23 +02:00
mpl f21cea5131 share: refactored
-pkg/server/share.go handles share(d) blobs.
-pkg/blobserver/gethandler no longer deals with share blobs
and has been rewritten like the other handlers (no more auth
in there).
-client and signhandler changed accordingly.
-serverconfig: auth moved up in makeCamliHandler
-share parameter added to the user level and low level config.
-share URL is now http(s)://host[:port]/[prefix/]share/sha1-xxxx.

Addresses http://camlistore.org/issue/107

Change-Id: I0a2c07ac1a1e435b141702e0ff06dc8182721d65
2013-03-06 19:11:00 +01:00
mpl 03ca023b03 serverconfig: make the localdisk optional, so that
s3 can be used as the primary blobserver.

Fixes http://code.google.com/p/camlistore/issues/detail?id=81

Change-Id: I12a7eb9a3dafc885eaaf14ba8da8716a6440416a
2013-01-10 23:14:56 +01:00