coreapi: path remainders
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@a6d0272a575722dbaef8c21c869e7625692fe7f6 This commit was moved from ipfs/boxo@d0da662cf78f21d6e3d170b11e33da14444f838b
Łukasz Magiera committed
Apr 3, 2018 at 14:49 UTC
16ea6d13bacead469e49ea8135fc5d42342626fb
1 file changed
+4
-3
core/coreiface/path.go
+4
-3
@@ -29,13 +29,14 @@ type Path interface {
29
30
// ResolvedPath is a resolved Path
31
type ResolvedPath interface {
32
- // Cid returns cid referred to by path
32
+ // Cid returns the CID referred to by path
33
Cid() *cid.Cid
34
35
- // Root returns cid of root path
35
+ // Root returns the CID of root path
36
Root() *cid.Cid
37
38
- //TODO: Path remainder
38
+ // Remainder returns unresolved part of the path
39
+ Remainder() string
40
41
Path
42
}