Commit 07225920 authored by Łukasz Magiera's avatar Łukasz Magiera

files2.0: fix build errors

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent 1dc26f7a
...@@ -2,9 +2,8 @@ package iface ...@@ -2,9 +2,8 @@ package iface
import ( import (
"context" "context"
"io"
options "github.com/ipfs/go-ipfs/core/coreapi/interface/options" "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
files "gx/ipfs/QmXWZCd8jfaHmt4UDSnjKmGcrQMw95bDGWqEeVLVJjoANX/go-ipfs-files" files "gx/ipfs/QmXWZCd8jfaHmt4UDSnjKmGcrQMw95bDGWqEeVLVJjoANX/go-ipfs-files"
ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format" ipld "gx/ipfs/QmcKKBwfz6FyQdHR2jsXrrF6XeSBXYL86anmWNewpFpoF5/go-ipld-format"
...@@ -18,11 +17,6 @@ type AddEvent struct { ...@@ -18,11 +17,6 @@ type AddEvent struct {
Size string `json:",omitempty"` Size string `json:",omitempty"`
} }
type UnixfsFile interface {
files.SizeFile
io.Seeker
}
// UnixfsAPI is the basic interface to immutable files in IPFS // UnixfsAPI is the basic interface to immutable files in IPFS
// NOTE: This API is heavily WIP, things are guaranteed to break frequently // NOTE: This API is heavily WIP, things are guaranteed to break frequently
type UnixfsAPI interface { type UnixfsAPI interface {
...@@ -35,7 +29,7 @@ type UnixfsAPI interface { ...@@ -35,7 +29,7 @@ type UnixfsAPI interface {
// //
// Note that some implementations of this API may apply the specified context // Note that some implementations of this API may apply the specified context
// to operations performed on the returned file // to operations performed on the returned file
Get(context.Context, Path) (UnixfsFile, error) Get(context.Context, Path) (files.File, error)
// Ls returns the list of links in a directory // Ls returns the list of links in a directory
Ls(context.Context, Path) ([]*ipld.Link, error) Ls(context.Context, Path) ([]*ipld.Link, error)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment