(prefix string)
| 245 | } |
| 246 | |
| 247 | func (hl *handlerLoader) GetStorage(prefix string) (blobserver.Storage, error) { |
| 248 | hl.setupHandler(prefix) |
| 249 | if s, ok := hl.handler[prefix].(blobserver.Storage); ok { |
| 250 | return s, nil |
| 251 | } |
| 252 | return nil, fmt.Errorf("bogus storage handler referenced as %q", prefix) |
| 253 | } |
| 254 | |
| 255 | func (hl *handlerLoader) GetHandler(prefix string) (interface{}, error) { |
| 256 | hl.setupHandler(prefix) |
no test coverage detected