1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-27 16:07:42 +08:00

coreapi: move unixfs errors to the top

License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
Łukasz Magiera
2018-03-10 17:59:43 +01:00
parent 5622cc5bb3
commit 20b59ec1ec

View File

@ -14,6 +14,9 @@ import (
ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format" ipld "gx/ipfs/Qme5bWv7wtjUNGsK2BNGVUFPKiuxWrsqrtvYwCLRw8YFES/go-ipld-format"
) )
var ErrIsDir = errors.New("object is a directory")
var ErrOffline = errors.New("can't resolve, ipfs node is offline")
// Path is a generic wrapper for paths used in the API. A path can be resolved // 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. // to a CID using one of Resolve functions in the API.
type Path interface { type Path interface {
@ -384,6 +387,3 @@ type PinAPI interface {
// Verify verifies the integrity of pinned objects // Verify verifies the integrity of pinned objects
Verify(context.Context) (<-chan PinStatus, error) Verify(context.Context) (<-chan PinStatus, error)
} }
var ErrIsDir = errors.New("object is a directory")
var ErrOffline = errors.New("can't resolve, ipfs node is offline")