Revision 67620dff src/Ganeti/HsConstants.hs

b/src/Ganeti/HsConstants.hs
4430 4430
-- | 'WaitForJobChange' timeout
4431 4431
luxiWfjcTimeout :: Int
4432 4432
luxiWfjcTimeout = (luxiDefRwto - 1) `div` 2
4433

  
4434
-- * Query language constants
4435

  
4436
-- ** Logic operators with one or more operands, each of which is a
4437
-- filter on its own
4438

  
4439
qlangOpAnd :: String
4440
qlangOpAnd = "&"
4441

  
4442
qlangOpOr :: String
4443
qlangOpOr = "|"
4444

  
4445
-- ** Unary operators with exactly one operand
4446

  
4447
qlangOpNot :: String
4448
qlangOpNot = "!"
4449

  
4450
qlangOpTrue :: String
4451
qlangOpTrue = "?"
4452

  
4453
-- ** Binary operators with exactly two operands, the field name and
4454
-- an operator-specific value
4455

  
4456
qlangOpContains :: String
4457
qlangOpContains = "=[]"
4458

  
4459
qlangOpEqual :: String
4460
qlangOpEqual = "="
4461

  
4462
qlangOpGe :: String
4463
qlangOpGe = ">="
4464

  
4465
qlangOpGt :: String
4466
qlangOpGt = ">"
4467

  
4468
qlangOpLe :: String
4469
qlangOpLe = "<="
4470

  
4471
qlangOpLt :: String
4472
qlangOpLt = "<"
4473

  
4474
qlangOpNotEqual :: String
4475
qlangOpNotEqual = "!="
4476

  
4477
qlangOpRegexp :: String
4478
qlangOpRegexp = "=~"
4479

  
4480
-- | Characters used for detecting user-written filters (see
4481
-- L{_CheckFilter})
4482

  
4483
qlangFilterDetectionChars :: FrozenSet String
4484
qlangFilterDetectionChars =
4485
  ConstantUtils.mkSet ["!", " ", "\"", "\'",
4486
                       ")", "(", "\x0b", "\n",
4487
                       "\r", "\x0c", "/", "<",
4488
                       "\t", ">", "=", "\\", "~"]
4489

  
4490
-- | Characters used to detect globbing filters
4491
qlangGlobDetectionChars :: FrozenSet String
4492
qlangGlobDetectionChars = ConstantUtils.mkSet ["*", "?"]

Also available in: Unified diff