1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
12 type fsBackend interface {
17 // Ideally *Client would do everything; meanwhile keepBackend
18 // implements fsBackend by merging the two kinds of arvados client.
19 type keepBackend struct {
24 type keepClient interface {
25 ReadAt(locator string, p []byte, off int) (int, error)
26 BlockWrite(context.Context, BlockWriteOptions) (BlockWriteResponse, error)
27 LocalLocator(locator string) (string, error)
30 type apiClient interface {
31 RequestAndDecode(dst interface{}, method, path string, body io.Reader, params interface{}) error