update
This commit is contained in:
@@ -874,3 +874,12 @@ func (s *Server) audit(
|
||||
}
|
||||
|
||||
var errAuthorizationDenied = errors.New("authorization denied")
|
||||
|
||||
var (
|
||||
errCodeNotFound = fmt.Errorf("%w: code not found", errAuthorizationDenied)
|
||||
errCodeExpired = fmt.Errorf("%w: code expired", errAuthorizationDenied)
|
||||
errCodeRevoked = fmt.Errorf("%w: code revoked", errAuthorizationDenied)
|
||||
errActionNotAuthorized = fmt.Errorf("%w: action not authorized", errAuthorizationDenied)
|
||||
errPackageNotAuthorized = fmt.Errorf("%w: package not authorized", errAuthorizationDenied)
|
||||
errHostLimitReached = fmt.Errorf("%w: host limit reached", errAuthorizationDenied)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user