kubo/core/corehttp
Lars Gierth ee45b8d32f coreapi: make the interfaces path centric
The new coreiface.Path maps a path to the cid.Cid
resulting from a full path resolution.

The path is internally represented as a go-ipfs/path.Path,
but that doesn't matter to the outside.

Apart from the path-to-CID mapping, it also aims to hold all
resolved segment CIDs of the path. Right now it only exposes
Root(), and only for flat paths a la /ipfs/Qmfoo. In other cases,
the root is nil.

In the future, resolution will internally use
go-ipfs/path.Resolver.ResolvePathComponents and thus always return
the proper resolved segments, via Root(), or a future Segments() func.

- Add coreiface.Path with Cid() and Root().
- Add CoreAPI.ResolvePath() for getting a coreiface.Path.
- All functions now expect and return coreiface.Path.
- Add ParsePath() and ParseCid() for constructing a coreiface.Path.
- Add coreiface.Node and Link which are simply go-ipld-node.Node and Link.
- Add CoreAPI.ResolveNode() for getting a Node from a Path.

License: MIT
Signed-off-by: Lars Gierth <larsg@systemli.org>
2017-03-17 03:47:59 +01:00
..
commands.go fix races in http cors 2015-10-13 01:09:55 +03:00
corehttp.go update go-multihash and bubble up deps 2017-02-12 12:25:41 -08:00
gateway_handler.go coreapi: make the interfaces path centric 2017-03-17 03:47:59 +01:00
gateway_indexPage.go gateway: bring back dir-index-html assets 2016-11-03 00:38:32 +01:00
gateway_test.go update go-libp2p-kad-dht with getclosestpeers fix 2017-03-05 23:06:04 -08:00
gateway.go coreapi: smarter way of dealing with the different APIs 2017-03-17 02:35:17 +01:00
ipns_hostname.go update to libp2p 4.0.1 and propogate other changes 2016-10-05 22:12:43 -07:00
logs.go update deps for libp2p 3.4.0 2016-08-25 19:02:55 -07:00
metrics_test.go update go-libp2p-kad-dht with getclosestpeers fix 2017-03-05 23:06:04 -08:00
metrics.go update go-multihash and bubble up deps 2017-02-12 12:25:41 -08:00
redirect.go corehttp: add net.Listener to ServeOption 2015-08-02 08:16:51 +02:00
webui.go feat(webui): update to new version 2017-02-09 12:44:30 +01:00