-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
executable file
·20 lines (16 loc) · 820 Bytes
/
Copy patherrors.go
File metadata and controls
executable file
·20 lines (16 loc) · 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package authcore
import "errors"
// Sentinel errors returned by the authcore package.
// Use errors.Is to check for these in calling code.
var (
// ErrInvalidConfig is returned when the supplied Config fails validation.
ErrInvalidConfig = errors.New("authcore: invalid configuration")
// ErrInvalidTimezone is returned when Config.Timezone is nil. New replaces
// a nil Timezone with time.UTC before validation, so this error is not
// observable through New.
ErrInvalidTimezone = errors.New("authcore: timezone must not be nil")
// ErrKeyManager is returned when the key management system fails to
// initialise, generate, or load cryptographic material, including when a
// Config.KeyStore returns no material or material of the wrong shape.
ErrKeyManager = errors.New("authcore: key manager failure")
)