perkeep/pkg/blobserver/storagetest
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
..
storagetest.go blob: specify "oh, nevermind" error value for optional SubFetcher interface 2018-05-17 19:49:02 -07:00