forked from theopenlane/core
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
30 lines (28 loc) · 1.81 KB
/
Copy patherrors.go
File metadata and controls
30 lines (28 loc) · 1.81 KB
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
26
27
28
29
30
package authentik
import "errors"
var (
// ErrAPITokenMissing indicates the API token is missing from the credential
ErrAPITokenMissing = errors.New("authentik: api token missing")
// ErrBaseURLMissing indicates the Authentik base URL is missing from the credential
ErrBaseURLMissing = errors.New("authentik: base url missing")
// ErrClientType indicates the provided client is not the expected authentik client type
ErrClientType = errors.New("authentik: unexpected client type")
// ErrClientConfigInvalid indicates the Authentik client configuration is invalid
ErrClientConfigInvalid = errors.New("authentik: client config invalid")
// ErrCredentialEncode indicates the credential could not be serialized
ErrCredentialEncode = errors.New("authentik: credential encode failed")
// ErrCredentialDecode indicates the credential could not be deserialized
ErrCredentialDecode = errors.New("authentik: credential decode failed")
// ErrHealthCheckFailed indicates the health check request failed
ErrHealthCheckFailed = errors.New("authentik: health check failed")
// ErrDirectoryUsersFetchFailed indicates the users listing failed
ErrDirectoryUsersFetchFailed = errors.New("authentik: directory users fetch failed")
// ErrDirectoryGroupsFetchFailed indicates the groups listing failed
ErrDirectoryGroupsFetchFailed = errors.New("authentik: directory groups fetch failed")
// ErrDirectoryGroupMembersFetchFailed indicates the group members listing failed
ErrDirectoryGroupMembersFetchFailed = errors.New("authentik: directory group members fetch failed")
// ErrPayloadEncode indicates a provider payload could not be serialized
ErrPayloadEncode = errors.New("authentik: payload encode failed")
// ErrResultEncode indicates an operation result could not be serialized
ErrResultEncode = errors.New("authentik: result encode failed")
)