mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-25 12:27:43 +08:00
coreapi unixfs: multi file support in unixfs coreapi
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@9a760d89b5 This commit was moved from ipfs/boxo@e50aac4cc7
This commit is contained in:
parent
33bb770722
commit
d3bbffb387
@ -2,10 +2,10 @@ package iface
|
||||
|
||||
import (
|
||||
"context"
|
||||
"io"
|
||||
|
||||
options "github.com/ipfs/go-ipfs/core/coreapi/interface/options"
|
||||
|
||||
files "gx/ipfs/QmSP88ryZkHSRn1fnngAaV2Vcn63WUJzAavnRM9CVdU1Ky/go-ipfs-cmdkit/files"
|
||||
ipld "gx/ipfs/QmdDXJs4axxefSPgK6Y1QhpJWKuDPnGJiqgq4uncb4rFHL/go-ipld-format"
|
||||
)
|
||||
|
||||
@ -13,7 +13,7 @@ import (
|
||||
// NOTE: This API is heavily WIP, things are guaranteed to break frequently
|
||||
type UnixfsAPI interface {
|
||||
// Add imports the data from the reader into merkledag file
|
||||
Add(context.Context, io.ReadCloser, ...options.UnixfsAddOption) (ResolvedPath, error)
|
||||
Add(context.Context, files.File, ...options.UnixfsAddOption) (ResolvedPath, error)
|
||||
|
||||
// Cat returns a reader for the file
|
||||
Cat(context.Context, Path) (Reader, error)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user