files2.0: fix build errors
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@072259200527f4b78299675bb5efbbaa715ca821 This commit was moved from ipfs/boxo@d4352730fe649983c5c9099d4ba2fba2170451f6
Łukasz Magiera committed
Oct 26, 2018 at 15:56 UTC
20631f73bfece2e3c953e07c4a2473456ac9cd57
1 file changed
+2
-8
core/coreiface/unixfs.go
+2
-8
@@ -2,9 +2,8 @@ package iface
2
3
import (
4
"context"
5
- "io"
5
7
- options "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
6
+ "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
7
8
files "gx/ipfs/QmXWZCd8jfaHmt4UDSnjKmGcrQMw95bDGWqEeVLVJjoANX/go-ipfs-files"
9
ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
@@ -18,11 +17,6 @@ type AddEvent struct {
17
Size string `json:",omitempty"`
18
}
19
21
-type UnixfsFile interface {
22
- files.SizeFile
23
- io.Seeker
24
-}
25
-
20
// UnixfsAPI is the basic interface to immutable files in IPFS
21
// NOTE: This API is heavily WIP, things are guaranteed to break frequently
22
type UnixfsAPI interface {
@@ -35,7 +29,7 @@ type UnixfsAPI interface {
29
//
30
// Note that some implementations of this API may apply the specified context
31
// to operations performed on the returned file
38
- Get(context.Context, Path) (UnixfsFile, error)
32
+ Get(context.Context, Path) (files.File, error)
33
34
// Ls returns the list of links in a directory
35
Ls(context.Context, Path) ([]*ipld.Link, error)