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
e8196db4
Commit
e8196db4
authored
Feb 02, 2019
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi: mirror unixfs file types
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
d93b9f11
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
unixfs.go
unixfs.go
+13
-2
No files found.
unixfs.go
View file @
e8196db4
...
...
@@ -4,7 +4,7 @@ import (
"context"
"github.com/ipfs/go-ipfs/core/coreapi/interface/options"
"gx/ipfs/QmQ1JnYpnzkaurjW1yxkQxC2w3K1PorNE1nv1vaP5Le7sq/go-unixfs
/pb
"
"gx/ipfs/QmQ1JnYpnzkaurjW1yxkQxC2w3K1PorNE1nv1vaP5Le7sq/go-unixfs"
ipld
"gx/ipfs/QmRL22E4paat7ky7vx9MLpR97JHHbFPrg3ytFQw6qp1y1s/go-ipld-format"
"gx/ipfs/QmaXvvAVAQ5ABqM5xtjYmV85xmN5MkWAZsX9H9Fwo4FVXp/go-ipfs-files"
)
...
...
@@ -16,10 +16,21 @@ type AddEvent struct {
Size
string
`json:",omitempty"`
}
type
FileType
int32
const
(
TRaw
=
FileType
(
unixfs
.
TRaw
)
TFile
=
FileType
(
unixfs
.
TFile
)
TDirectory
=
FileType
(
unixfs
.
TDirectory
)
TMetadata
=
FileType
(
unixfs
.
TMetadata
)
TSymlink
=
FileType
(
unixfs
.
TSymlink
)
THAMTShard
=
FileType
(
unixfs
.
THAMTShard
)
)
type
LsLink
struct
{
Link
*
ipld
.
Link
Size
uint64
Type
unixfs_pb
.
Data_Data
Type
Type
File
Type
Err
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