18681: Fix typo
[arvados.git] / sdk / go / arvados / fs_backend.go
1 // Copyright (C) The Arvados Authors. All rights reserved.
2 //
3 // SPDX-License-Identifier: Apache-2.0
4
5 package arvados
6
7 import (
8         "context"
9         "io"
10 )
11
12 type fsBackend interface {
13         keepClient
14         apiClient
15 }
16
17 // Ideally *Client would do everything; meanwhile keepBackend
18 // implements fsBackend by merging the two kinds of arvados client.
19 type keepBackend struct {
20         keepClient
21         apiClient
22 }
23
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)
28 }
29
30 type apiClient interface {
31         RequestAndDecode(dst interface{}, method, path string, body io.Reader, params interface{}) error
32 }