perkeep/pkg/blobserver/blobpacked
mpl b6eb85631c blob SubFetcher: explicitely states with errors the testSubFetcher constraints
testSubFetcher in blobserver/storagetest was already checking that we'd
get specific error messages in the case of negative input parameters or
an out of range offset.

This change rationalizes these constraints with named errors
(ErrNegativeSubFetch and ErrOutOfRangeOffsetSubFetch) specified
in the SubFetcher interface.

It also fixes the googlestorage and s3 implementations so that they pass
the aforementioned test.

Change-Id: I25b72b842855b90ee3cab44c90654581dccf4b8e
2015-02-26 15:18:27 +01:00
..
blobpacked.go blobpacked: stub TODO implementation of blobserver.WholeRefFetcher 2015-02-04 21:07:05 -08:00
blobpacked_test.go blobpacked: more tests and adjusted various constants 2015-01-19 13:23:39 -08:00
stream.go blobserver/blobpacked: finish StreamBlobs support 2014-12-25 19:21:24 -08:00
stream_test.go blobserver/blobpacked: add test of stream working with 2 zips 2014-12-25 19:26:04 -08:00
subfetch.go blob SubFetcher: explicitely states with errors the testSubFetcher constraints 2015-02-26 15:18:27 +01:00
subfetch_test.go blobserver/blobpacked: add missing SubFetch bounds checks 2014-12-31 14:16:50 -08:00
wholefetch.go blobpacked: stub TODO implementation of blobserver.WholeRefFetcher 2015-02-04 21:07:05 -08:00