@@ -12,10 +12,14 @@ type ErrorCode string
12
12
const (
13
13
ErrorCodeEnvironmentInvalid ErrorCode = "ENVIRONMENT_INVALID"
14
14
ErrorCodeEnvironmentNotSupported ErrorCode = "ENVIRONMENT_NOT_SUPPORTED"
15
+ ErrorCodeTokenFormatInvalid ErrorCode = "TOKEN_FORMAT_INVALID"
15
16
ErrorCodeTokenInvalid ErrorCode = "TOKEN_INVALID"
17
+ ErrorCodeTokenExpired ErrorCode = "TOKEN_EXPIRED"
18
+ ErrorCodeTokenNotAllowed ErrorCode = "TOKEN_NOT_ALLOWED"
16
19
ErrorCodeLicenseInvalid ErrorCode = "LICENSE_INVALID"
17
20
ErrorCodeLicenseExpired ErrorCode = "LICENSE_EXPIRED"
18
21
ErrorCodeLicenseSuspended ErrorCode = "LICENSE_SUSPENDED"
22
+ ErrorCodeLicenseNotAllowed ErrorCode = "LICENSE_NOT_ALLOWED"
19
23
ErrorCodeFingerprintTaken ErrorCode = "FINGERPRINT_TAKEN"
20
24
ErrorCodeMachineLimitExceeded ErrorCode = "MACHINE_LIMIT_EXCEEDED"
21
25
ErrorCodeProcessLimitExceeded ErrorCode = "MACHINE_PROCESS_LIMIT_EXCEEDED"
@@ -140,6 +144,7 @@ var (
140
144
ErrLicenseKeyMissing = errors .New ("license key is missing" )
141
145
ErrLicenseKeyNotGenuine = errors .New ("license key is not genuine" )
142
146
ErrLicenseNotActivated = errors .New ("license is not activated" )
147
+ ErrLicenseNotAllowed = errors .New ("license authentication is not allowed by policy" )
143
148
ErrLicenseExpired = errors .New ("license is expired" )
144
149
ErrLicenseSuspended = errors .New ("license is suspended" )
145
150
ErrLicenseTooManyMachines = errors .New ("license has too many machines" )
@@ -152,5 +157,9 @@ var (
152
157
ErrLicenseFileNotGenuine = errors .New ("license file is not genuine" )
153
158
ErrLicenseFileExpired = errors .New ("license file is expired" )
154
159
ErrLicenseFileSecretMissing = errors .New ("license file secret is missing" )
160
+ ErrTokenNotAllowed = errors .New ("token authentication is not allowed by policy" )
161
+ ErrTokenFormatInvalid = errors .New ("token format is invalid" )
162
+ ErrTokenInvalid = errors .New ("token is invalid" )
163
+ ErrTokenExpired = errors .New ("token is expired" )
155
164
ErrSystemClockUnsynced = errors .New ("system clock is out of sync" )
156
165
)
0 commit comments