-
Notifications
You must be signed in to change notification settings - Fork 6
/
status.go
25 lines (19 loc) · 993 Bytes
/
status.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
25
// Package status declares error constants returned by the various
// implementations of the Authable interface.
//
// NOTE: such constants are located in a separate package to avoid
// creating undue cyclical dependencies between pkg/store and one
// of its implementions.
package status
import "github.com/oneconcern/datamon/pkg/errors"
var (
// Sentinel errors returned by implementations of interfaces defined by auth
// ErrInvalidCredentials indicates that the credentials passed are invalid
ErrInvalidCredentials = errors.New("invalid credentials")
// ErrUserinfo indicates that user information could not be retrieved
ErrUserinfo = errors.New("could not retrieve userinfo")
// ErrAuthService indicates that we coud not instantiate an authentication service
ErrAuthService = errors.New("could not create oauth service")
// ErrEmailScope indicates that the email scope is missing from the credentials
ErrEmailScope = errors.New("email scope is mandatory to run datamon")
)