perkeep/pkg/blob
Brad Fitzpatrick 0ccf258ca4 blob: specify "oh, nevermind" error value for optional SubFetcher interface
To support composition, all optional interfaces in Go need a way to
say, at runtime, that "oh, nevermind, I defensively implemented this
interface but it turns out the thing I'm wrapping doesn't support it".

We learned that lesson only in the past few years, but SubFetcher
predates that.

So do that here and make proxycache implemented SubFetcher and make
everything respect the fallback oh-nevermind error value.

Fixes #1170

Change-Id: I3c0958cf6692a324e98f526571d10a352a8e18b4
2018-05-17 19:49:02 -07:00
..
blob.go pkg/blob: fix NewBlob doc 2018-01-19 17:50:19 +01:00
chanpeek.go all: update copyright holder from Google Inc to The Perkeep Authors 2018-01-03 16:52:49 -08:00
fetcher.go blob: specify "oh, nevermind" error value for optional SubFetcher interface 2018-05-17 19:49:02 -07:00
ref.go all: various lint fixes 2018-02-05 11:59:00 -08:00
ref_test.go all, testhooks: use sha224 by default, add hook for some tests to use sha-1 2018-01-09 20:03:38 -08:00