forked from ilijamt/vault-plugin-secrets-gitlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defs.go
24 lines (21 loc) · 760 Bytes
/
defs.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 gitlab
import (
"errors"
"time"
)
var (
ErrNilValue = errors.New("nil value")
ErrInvalidValue = errors.New("invalid value")
ErrFieldRequired = errors.New("required field")
ErrFieldInvalidValue = errors.New("invalid value for field")
ErrBackendNotConfigured = errors.New("backend not configured")
)
const (
DefaultConfigFieldAccessTokenMaxTTL = 7 * 24 * time.Hour
DefaultConfigFieldAccessTokenRotate = DefaultAutoRotateBeforeMinTTL
DefaultRoleFieldAccessTokenMaxTTL = 24 * time.Hour
DefaultAccessTokenMinTTL = 24 * time.Hour
DefaultAccessTokenMaxPossibleTTL = 365 * 24 * time.Hour
DefaultAutoRotateBeforeMinTTL = 24 * time.Hour
DefaultAutoRotateBeforeMaxTTL = 730 * time.Hour
)