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
93299fcb
Commit
93299fcb
authored
Feb 09, 2019
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gx-go uw
parent
6e2dc728
Changes
17
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
40 additions
and
40 deletions
+40
-40
coreapi.go
coreapi.go
+1
-1
dag.go
dag.go
+1
-1
dht.go
dht.go
+2
-2
key.go
key.go
+1
-1
object.go
object.go
+2
-2
options/block.go
options/block.go
+2
-2
options/unixfs.go
options/unixfs.go
+3
-3
path.go
path.go
+2
-2
pubsub.go
pubsub.go
+1
-1
swarm.go
swarm.go
+5
-5
tests/block.go
tests/block.go
+1
-1
tests/dag.go
tests/dag.go
+3
-3
tests/name.go
tests/name.go
+2
-2
tests/path.go
tests/path.go
+2
-2
tests/pin.go
tests/pin.go
+2
-2
tests/unixfs.go
tests/unixfs.go
+7
-7
unixfs.go
unixfs.go
+3
-3
No files found.
coreapi.go
View file @
93299fcb
...
...
@@ -7,7 +7,7 @@ import (
"github.com/ipfs/interface-go-ipfs-core/options"
ipld
"g
x/ipfs/QmRL22E4paat7ky7vx9MLpR97JHHbFPrg3ytFQw6qp1y1
s/go-ipld-format"
ipld
"g
ithub.com/ipf
s/go-ipld-format"
)
// CoreAPI defines an unified interface to IPFS for Go programs
...
...
dag.go
View file @
93299fcb
package
iface
import
(
ipld
"g
x/ipfs/QmRL22E4paat7ky7vx9MLpR97JHHbFPrg3ytFQw6qp1y1
s/go-ipld-format"
ipld
"g
ithub.com/ipf
s/go-ipld-format"
)
// APIDagService extends ipld.DAGService
...
...
dht.go
View file @
93299fcb
...
...
@@ -5,8 +5,8 @@ import (
"github.com/ipfs/interface-go-ipfs-core/options"
peer
"g
x/ipfs/QmPJxxDsX2UbchSHobbYuvz7qnyJTFKvaKMzE2rZWJ4x5B
/go-libp2p-peer"
pstore
"g
x/ipfs/QmQFFp4ntkd4C14sP3FaH9WJyBuetuGUVo6dShNHvnoEvC
/go-libp2p-peerstore"
peer
"g
ithub.com/libp2p
/go-libp2p-peer"
pstore
"g
ithub.com/libp2p
/go-libp2p-peerstore"
)
// DhtAPI specifies the interface to the DHT
...
...
key.go
View file @
93299fcb
...
...
@@ -5,7 +5,7 @@ import (
options
"github.com/ipfs/interface-go-ipfs-core/options"
"g
x/ipfs/QmPJxxDsX2UbchSHobbYuvz7qnyJTFKvaKMzE2rZWJ4x5B
/go-libp2p-peer"
"g
ithub.com/libp2p
/go-libp2p-peer"
)
// Key specifies the interface to Keys in KeyAPI Keystore
...
...
object.go
View file @
93299fcb
...
...
@@ -6,8 +6,8 @@ import (
options
"github.com/ipfs/interface-go-ipfs-core/options"
cid
"g
x/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw
/go-cid"
ipld
"g
x/ipfs/QmRL22E4paat7ky7vx9MLpR97JHHbFPrg3ytFQw6qp1y1
s/go-ipld-format"
cid
"g
ithub.com/ipfs
/go-cid"
ipld
"g
ithub.com/ipf
s/go-ipld-format"
)
// ObjectStat provides information about dag nodes
...
...
options/block.go
View file @
93299fcb
...
...
@@ -2,8 +2,8 @@ package options
import
(
"fmt"
cid
"g
x/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw
/go-cid"
mh
"g
x/ipfs/QmerPMzPk1mJVowm8KgmoknWa4yCYvvugMPsgWmDNUvDLW
/go-multihash"
cid
"g
ithub.com/ipfs
/go-cid"
mh
"g
ithub.com/multiformats
/go-multihash"
)
type
BlockPutSettings
struct
{
...
...
options/unixfs.go
View file @
93299fcb
...
...
@@ -4,9 +4,9 @@ import (
"errors"
"fmt"
cid
"g
x/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw
/go-cid"
dag
"g
x/ipfs/QmUtsx89yiCY6F8mbpP6ecXckiSzCBH7EvkKZuZEHBcr1m
/go-merkledag"
mh
"g
x/ipfs/QmerPMzPk1mJVowm8KgmoknWa4yCYvvugMPsgWmDNUvDLW
/go-multihash"
cid
"g
ithub.com/ipfs
/go-cid"
dag
"g
ithub.com/ipfs
/go-merkledag"
mh
"g
ithub.com/multiformats
/go-multihash"
)
type
Layout
int
...
...
path.go
View file @
93299fcb
package
iface
import
(
ipfspath
"gx/ipfs/QmQ3YSqfxunT5QBg6KBVskKyRE26q6hjSMyhpxchpm7jEN/go-path
"
"gx/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw/go-cid
"
"github.com/ipfs/go-cid
"
ipfspath
"github.com/ipfs/go-path
"
)
//TODO: merge with ipfspath so we don't depend on it
...
...
pubsub.go
View file @
93299fcb
...
...
@@ -6,7 +6,7 @@ import (
options
"github.com/ipfs/interface-go-ipfs-core/options"
peer
"g
x/ipfs/QmPJxxDsX2UbchSHobbYuvz7qnyJTFKvaKMzE2rZWJ4x5B
/go-libp2p-peer"
peer
"g
ithub.com/libp2p
/go-libp2p-peer"
)
// PubSubSubscription is an active PubSub subscription
...
...
swarm.go
View file @
93299fcb
...
...
@@ -5,11 +5,11 @@ import (
"errors"
"time"
ma
"gx/ipfs/QmNTCey11oxhb1AxDnQBRHtdhap6Ctud872NjAYPYYXPuc/go-multiaddr
"
"g
x/ipfs/QmPJxxDsX2UbchSHobbYuvz7qnyJTFKvaKMzE2rZWJ4x5B
/go-libp2p-peer"
pstore
"g
x/ipfs/QmQFFp4ntkd4C14sP3FaH9WJyBuetuGUVo6dShNHvnoEvC
/go-libp2p-peerstore"
net
"gx/ipfs/QmZ7cBWUXkyWTMN4qH6NGoyMVs7JugyFChBNP4ZUp5rJHH
/go-libp2p-
net
"
"gx/ipfs/QmZNkThpqfVXs9GNbexPrfBbXSLNYeKrE7jwFM2oqHbyqN/go-libp2p-protocol
"
net
"github.com/libp2p/go-libp2p-net
"
"g
ithub.com/libp2p
/go-libp2p-peer"
pstore
"g
ithub.com/libp2p
/go-libp2p-peerstore"
"github.com/libp2p
/go-libp2p-
protocol
"
ma
"github.com/multiformats/go-multiaddr
"
)
var
(
...
...
tests/block.go
View file @
93299fcb
...
...
@@ -9,7 +9,7 @@ import (
coreiface
"github.com/ipfs/interface-go-ipfs-core"
opt
"github.com/ipfs/interface-go-ipfs-core/options"
mh
"g
x/ipfs/QmerPMzPk1mJVowm8KgmoknWa4yCYvvugMPsgWmDNUvDLW
/go-multihash"
mh
"g
ithub.com/multiformats
/go-multihash"
)
func
(
tp
*
provider
)
TestBlock
(
t
*
testing
.
T
)
{
...
...
tests/dag.go
View file @
93299fcb
...
...
@@ -9,9 +9,9 @@ import (
coreiface
"github.com/ipfs/interface-go-ipfs-core"
ipld
"gx/ipfs/QmRL22E4paat7ky7vx9MLpR97JHHbFPrg3ytFQw6qp1y1
s/go-ipld-
format
"
ipld
cbor
"gx/ipfs/QmRZxJ7oybgnnwriuRub9JXp5YdFM9wiGSyRq38QC7swpS
/go-ipld-
cbor
"
mh
"g
x/ipfs/QmerPMzPk1mJVowm8KgmoknWa4yCYvvugMPsgWmDNUvDLW
/go-multihash"
ipld
cbor
"github.com/ipf
s/go-ipld-
cbor
"
ipld
"github.com/ipfs
/go-ipld-
format
"
mh
"g
ithub.com/multiformats
/go-multihash"
)
func
(
tp
*
provider
)
TestDag
(
t
*
testing
.
T
)
{
...
...
tests/name.go
View file @
93299fcb
...
...
@@ -8,8 +8,8 @@ import (
"testing"
"time"
ipath
"gx/ipfs/QmQ3YSqfxunT5QBg6KBVskKyRE26q6hjSMyhpxchpm7jEN/go-path
"
"gx/ipfs/QmaXvvAVAQ5ABqM5xtjYmV85xmN5MkWAZsX9H9Fwo4FVXp/go-ipfs-files
"
"github.com/ipfs/go-ipfs-files
"
ipath
"github.com/ipfs/go-path
"
coreiface
"github.com/ipfs/interface-go-ipfs-core"
opt
"github.com/ipfs/interface-go-ipfs-core/options"
...
...
tests/path.go
View file @
93299fcb
...
...
@@ -9,7 +9,7 @@ import (
coreiface
"github.com/ipfs/interface-go-ipfs-core"
"github.com/ipfs/interface-go-ipfs-core/options"
ipldcbor
"g
x/ipfs/QmRZxJ7oybgnnwriuRub9JXp5YdFM9wiGSyRq38QC7swpS
/go-ipld-cbor"
ipldcbor
"g
ithub.com/ipfs
/go-ipld-cbor"
)
func
(
tp
*
provider
)
TestPath
(
t
*
testing
.
T
)
{
...
...
@@ -38,7 +38,7 @@ func (tp *provider) TestMutablePath(t *testing.T) {
t
.
Error
(
"expected /ipld path to be immutable"
)
}
// get self /ipns path
ipldcbor "gx/ipfs/QmRZxJ7oybgnnwriuRub9JXp5YdFM9wiGSyRq38QC7swpS/go-ipld-cbor"
// get self /ipns path
if
api
.
Key
()
==
nil
{
t
.
Fatal
(
".Key not implemented"
)
...
...
tests/pin.go
View file @
93299fcb
...
...
@@ -9,8 +9,8 @@ import (
"github.com/ipfs/interface-go-ipfs-core"
opt
"github.com/ipfs/interface-go-ipfs-core/options"
ipld
"gx/ipfs/QmRL22E4paat7ky7vx9MLpR97JHHbFPrg3ytFQw6qp1y1
s/go-ipld-
format
"
ipld
cbor
"gx/ipfs/QmRZxJ7oybgnnwriuRub9JXp5YdFM9wiGSyRq38QC7swpS
/go-ipld-
cbor
"
ipld
cbor
"github.com/ipf
s/go-ipld-
cbor
"
ipld
"github.com/ipfs
/go-ipld-
format
"
)
func
(
tp
*
provider
)
TestPin
(
t
*
testing
.
T
)
{
...
...
tests/unixfs.go
View file @
93299fcb
...
...
@@ -18,13 +18,13 @@ import (
coreiface
"github.com/ipfs/interface-go-ipfs-core"
"github.com/ipfs/interface-go-ipfs-core/options"
"g
x/ipfs/QmR8BauakNcBa3RbE4nbQu76PDiJgoQgz8AJdhJuiU4TAw
/go-cid"
cbor
"gx/ipfs/QmRZxJ7oybgnnwriuRub9JXp5YdFM9wiGSyRq38QC7swpS/go-ipld-cbor
"
mdag
"gx/ipfs/QmUtsx89yiCY6F8mbpP6ecXckiSzCBH7EvkKZuZEHBcr1m/go-merkledag
"
"gx/ipfs/QmZArMcsVDsXdcLbUx4844CuqKXBpbxdeiryM4cnmGTNRq/go-unixfs
"
"g
x/ipfs/QmZArMcsVDsXdcLbUx4844CuqKXBpbxdeiryM4cnmGTNRq/go-unixfs/importer/helper
s"
"g
x/ipfs/QmaXvvAVAQ5ABqM5xtjYmV85xmN5MkWAZsX9H9Fwo4FVXp/go-ipfs-file
s"
mh
"g
x/ipfs/QmerPMzPk1mJVowm8KgmoknWa4yCYvvugMPsgWmDNUvDLW
/go-multihash"
"g
ithub.com/ipfs
/go-cid"
"github.com/ipfs/go-ipfs-files
"
cbor
"github.com/ipfs/go-ipld-cbor
"
mdag
"github.com/ipfs/go-merkledag
"
"g
ithub.com/ipfs/go-unixf
s"
"g
ithub.com/ipfs/go-unixfs/importer/helper
s"
mh
"g
ithub.com/multiformats
/go-multihash"
)
func
(
tp
*
provider
)
TestUnixfs
(
t
*
testing
.
T
)
{
...
...
unixfs.go
View file @
93299fcb
...
...
@@ -4,9 +4,9 @@ import (
"context"
"github.com/ipfs/interface-go-ipfs-core/options"
ipld
"gx/ipfs/QmRL22E4paat7ky7vx9MLpR97JHHbFPrg3ytFQw6qp1y1s/go-ipld-format
"
"gx/ipfs/QmZArMcsVDsXdcLbUx4844CuqKXBpbxdeiryM4cnmGTNRq/go-unixfs
"
"g
x/ipfs/QmaXvvAVAQ5ABqM5xtjYmV85xmN5MkWAZsX9H9Fwo4FVXp/go-ipfs-file
s"
"github.com/ipfs/go-ipfs-files
"
ipld
"github.com/ipfs/go-ipld-format
"
"g
ithub.com/ipfs/go-unixf
s"
)
type
AddEvent
struct
{
...
...
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