mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-22 02:47:48 +08:00
alternative to #5243 that updates go-cid and all packages that depend on it License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
19 lines
494 B
Go
19 lines
494 B
Go
package iface
|
|
|
|
import (
|
|
cid "gx/ipfs/QmYVNvtQkeZ6AKSwDrjQTs432QtL6umrrK41EBq3cu7iSP/go-cid"
|
|
)
|
|
|
|
// Path is a generic wrapper for paths used in the API. A path can be resolved
|
|
// to a CID using one of Resolve functions in the API.
|
|
type Path interface {
|
|
// String returns the path as a string.
|
|
String() string
|
|
// Cid returns cid referred to by path
|
|
Cid() *cid.Cid
|
|
// Root returns cid of root path
|
|
Root() *cid.Cid
|
|
// Resolved returns whether path has been fully resolved
|
|
Resolved() bool
|
|
}
|