-
Notifications
You must be signed in to change notification settings - Fork 332
/
errors.go
24 lines (21 loc) · 952 Bytes
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package auth
import (
"errors"
"github.com/treeverse/lakefs/pkg/kv"
)
var (
ErrNotFound = kv.ErrNotFound
ErrAlreadyExists = errors.New("already exists")
ErrNonUnique = errors.New("more than one user found")
ErrInvalidArn = errors.New("invalid ARN")
ErrInsufficientPermissions = errors.New("insufficient permissions")
ErrInvalidAccessKeyID = errors.New("invalid access key ID")
ErrInvalidSecretAccessKey = errors.New("invalid secret access key")
ErrUnexpectedStatusCode = errors.New("unexpected status code")
ErrUnexpectedSigningMethod = errors.New("unexpected signing method")
ErrInvalidToken = errors.New("invalid token")
ErrInvalidRequest = errors.New("invalid request")
ErrUserNotFound = errors.New("user not found")
ErrInvalidResponse = errors.New("invalid response")
ErrNotImplemented = errors.New("not implemented")
)