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@e4a333226c

This commit was moved from ipfs/boxo@38520ef878
This commit is contained in:
Łukasz Magiera 2018-03-30 22:21:57 +02:00
parent 161503c26f
commit fd3e7b365a

View File

@ -40,8 +40,11 @@ type CoreAPI interface {
ResolveNode(context.Context, Path) (ipld.Node, error)
// 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
ParseCid(*cid.Cid) ResolvedPath
// IpfsPath creates new /ipfs path from the provided CID
IpfsPath(*cid.Cid) ResolvedPath
// IpldPath creates new /ipld path from the provided CID
IpldPath(*cid.Cid) ResolvedPath
}