Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
9a760d89
Commit
9a760d89
authored
Oct 03, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi unixfs: multi file support in unixfs coreapi
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
88ca0a07
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
unixfs.go
unixfs.go
+2
-2
No files found.
unixfs.go
View file @
9a760d89
...
@@ -2,10 +2,10 @@ package iface
...
@@ -2,10 +2,10 @@ package iface
import
(
import
(
"context"
"context"
"io"
options
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
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"
ipld
"gx/ipfs/QmdDXJs4axxefSPgK6Y1QhpJWKuDPnGJiqgq4uncb4rFHL/go-ipld-format"
)
)
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
// 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
{
// Add imports the data from the reader into merkledag file
// 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 returns a reader for the file
Cat
(
context
.
Context
,
Path
)
(
Reader
,
error
)
Cat
(
context
.
Context
,
Path
)
(
Reader
,
error
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment