package object_storage

import "errors"

var (
	ErrInvalidConfig   = errors.New("invalid config")
	ErrUnknownClient   = errors.New("unknown client")
	ErrInvalidInstance = errors.New("invalid instance")
	ErrToManyOptions   = errors.New("too many options")

	ErrObjectNotFound      = errors.New("object not found")
	ErrObjectAlreadyExists = errors.New("object already exists")

	ErrPutNewObject     = errors.New("failed put new object")
	ErrGetObject        = errors.New("failed get object")
	ErrDeleteObject     = errors.New("failed delete object")
	ErrUpdateObject     = errors.New("failed update object")
	ErrGetPresignedLink = errors.New("failed get presigned link")
	ErrCheckExists      = errors.New("check exists")
)

const (
	s3ErrorPatternNoSuchKey = "NoSuchKey"
	s3ErrorPatternNotFound  = "NotFound"
)
