1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: Apache-2.0
9 type fsBackend interface {
14 // Ideally *Client would do everything; meanwhile keepBackend
15 // implements fsBackend by merging the two kinds of arvados client.
16 type keepBackend struct {
21 type keepClient interface {
22 ReadAt(locator string, p []byte, off int) (int, error)
23 PutB(p []byte) (string, int, error)
24 LocalLocator(locator string) (string, error)
27 type apiClient interface {
28 RequestAndDecode(dst interface{}, method, path string, body io.Reader, params interface{}) error