-
Notifications
You must be signed in to change notification settings - Fork 7
/
errors.go
62 lines (52 loc) · 2.42 KB
/
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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package natsbackend
const (
// Parameters
InvalidParametersError = "invalid parameters"
DecodeFailedError = "could not decode parameters"
// ISSUE
AddingIssueFailedError = "adding issue failed"
ReadingIssueFailedError = "reading issue failed"
IssueNotFoundError = "issue not found"
DeleteIssueFailedError = "deleting issue failed"
ListIssuesFailedError = "listing issues failed"
// JWT
AddingJWTFailedError = "adding jwt failed"
ReadingJWTFailedError = "reading jwt failed"
ListJWTsFailedError = "listing jwts failed"
DeleteJWTFailedError = "deleting jwt failed"
JwtNotFoundError = "jwt not found"
// NKEY
AddingNkeyFailedError = "adding nkey failed"
ReadingNkeyFailedError = "reading nkey failed"
ListNkeysFailedError = "listing nkeys failed"
DeleteNkeyFailedError = "deleting nkey failed"
NkeyNotFoundError = "nkey not found"
// CREDS
AddingCredsFailedError = "adding creds failed"
ReadingCredsFailedError = "reading creds failed"
ListCredsFailedError = "listing credss failed"
DeleteCredsFailedError = "deleting creds failed"
CredsNotFoundError = "creds not found"
// // Operator Errors
// OperatorNotConfiguredError = "operator not configured"
// OperatorMissingError = "missing operator"
// MissingOperatorSigningKeysError = "missing operator signing keys"
// DeletingOperatorError = "error deleting operator"
// NoAdditionalSigningKeysError = "no additional signing keys defined in operator"
// NotInOperatorSigningKeysError = "given signing key id is not defined in operator"
// // Account errors
// StrictSigningKeyUsageButNoKeyDefinedError = "operator is enabled with strict signing key usage. Provide at least one account signing key"
// AccountMissingError = "missing account"
// AccountDeleteError = "error deleting account"
// MissingAccountSigningKeysError = "missing account signing keys"
// // NKey errors
// NKeyStorageAccessError = "error while accessing nkey storage"
// NKeyUnknownCategoryError = "unknown nkey category"
// NKeyMissingPeerError = "missing peer"
// NKeyMissingIDError = "missing id"
// // JWT errors
// JwtMissingUserNameError = "missing user name"
// JwtMissingAccountNameError = "missing account name"
// JwtTokenHasWrongClaimTypeError = "token has wrong claim type"
// JwtExistenceCheckError = "existence check failed"
)