mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-28 05:47:51 +08:00
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:
parent
161503c26f
commit
fd3e7b365a
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user