package backend

import "errors"

// ErrNotS3Stored reports that an operation requires an S3-backed file target.
var ErrNotS3Stored = errors.New("file is not S3-stored")

// ErrS3NotConfigured reports that the backend cannot serve S3-backed flows.
var ErrS3NotConfigured = errors.New("S3 not configured")

var ErrAppendLogUnsupported = errors.New("append-log is unsupported")
var ErrAppendLogInvalidRequest = errors.New("invalid append-log request")
var ErrAppendLogTooLarge = errors.New("append-log exceeds maximum object size")
var ErrAppendLogRebased = errors.New("append-log rebased")

// ErrNotInlineStorage reports that an operation requires db9-inline file data.
var ErrNotInlineStorage = errors.New("file is not stored inline")

// ErrInvalidSymlinkTarget reports that a symbolic link target is empty or
// contains bytes that cannot be represented by the FUSE symlink contract.
var ErrInvalidSymlinkTarget = errors.New("invalid symlink target")

// ErrInvalidHardlinkTarget reports that a hardlink source cannot be linked,
// for example because it names a directory.
var ErrInvalidHardlinkTarget = errors.New("invalid hardlink target")
