1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-17 16:37:59 +08:00

coreapi: path remainders

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera
2018-04-03 14:49:33 +02:00
parent 7ee6194352
commit 9b288560a4
5 changed files with 150 additions and 27 deletions

View File

@ -29,13 +29,14 @@ type Path interface {
// ResolvedPath is a resolved Path
type ResolvedPath interface {
// Cid returns cid referred to by path
// Cid returns the CID referred to by path
Cid() *cid.Cid
// Root returns cid of root path
// Root returns the CID of root path
Root() *cid.Cid
//TODO: Path remainder
// Remainder returns unresolved part of the path
Remainder() string
Path
}