Commit 848f1236 authored by Łukasz Magiera's avatar Łukasz Magiera

coreapi: move unixfs errors to the top

License: MIT
Signed-off-by: default avatarŁukasz Magiera <magik6k@gmail.com>
parent 4597fde8
......@@ -14,6 +14,9 @@ import (
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
// to a CID using one of Resolve functions in the API.
type Path interface {
......@@ -384,6 +387,3 @@ type PinAPI interface {
// Verify verifies the integrity of pinned objects
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")
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