coreapi: remove ctx from ParsePath, split ParseCid
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com> This commit was moved from ipfs/interface-go-ipfs-core@e4a333226c4cff7d76082700c14391133af6a7e5 This commit was moved from ipfs/boxo@38520ef87802adf0c77aaece8cc9d203b65461d5
Łukasz Magiera committed
Mar 30, 2018 at 22:21 UTC
fd3e7b365a6752016b836ab1dd1eef45580522cd
1 file changed
+6
-3
core/coreiface/coreapi.go
+6
-3
@@ -40,8 +40,11 @@ type CoreAPI interface {
40
ResolveNode(context.Context, Path) (ipld.Node, error)
41
42
// ParsePath parses string path to a Path
43
- ParsePath(context.Context, string) (Path, error)
43
+ ParsePath(string) (Path, error)
44
45
- // ParseCid creates new path from the provided CID
46
- ParseCid(*cid.Cid) ResolvedPath
45
+ // IpfsPath creates new /ipfs path from the provided CID
46
+ IpfsPath(*cid.Cid) ResolvedPath
47
+
48
+ // IpldPath creates new /ipld path from the provided CID
49
+ IpldPath(*cid.Cid) ResolvedPath
50
}