mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-08-15 19:56:39 +00:00
16 lines
721 B
Go
16 lines
721 B
Go
package constants
|
|
|
|
// Filer error messages — shared between filer (producing) and S3 API (matching).
|
|
// These cross a gRPC boundary as strings in CreateEntryResponse.Error, so typed
|
|
// errors cannot be used. Keeping the strings in one place prevents mismatches.
|
|
const (
|
|
ErrMsgOperationNotPermitted = "operation not permitted"
|
|
ErrMsgBadDigest = "The Content-Md5 you specified did not match what we received."
|
|
ErrMsgEntryNameTooLong = "entry name too long"
|
|
// Suffix appended to a path, e.g. "/buckets/b/foo/bar is a file"
|
|
ErrMsgIsAFile = " is a file"
|
|
// Prefix + suffix, e.g. "existing /buckets/b/foo is a directory"
|
|
ErrMsgExistingPrefix = "existing "
|
|
ErrMsgIsADirectory = " is a directory"
|
|
)
|