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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user