Commit e4a33322 authored by Łukasz Magiera's avatar Łukasz Magiera

coreapi: remove ctx from ParsePath, split ParseCid

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent 79875b01
...@@ -40,8 +40,11 @@ type CoreAPI interface { ...@@ -40,8 +40,11 @@ type CoreAPI interface {
ResolveNode(context.Context, Path) (ipld.Node, error) ResolveNode(context.Context, Path) (ipld.Node, error)
// ParsePath parses string path to a Path // ParsePath parses string path to a Path
ParsePath(context.Context, string) (Path, error) ParsePath(string) (Path, error)
// ParseCid creates new path from the provided CID // IpfsPath creates new /ipfs path from the provided CID
ParseCid(*cid.Cid) ResolvedPath IpfsPath(*cid.Cid) ResolvedPath
// IpldPath creates new /ipld path from the provided CID
IpldPath(*cid.Cid) ResolvedPath
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment