Skip to content
Snippets Groups Projects
  1. Dec 17, 2012
  2. Dec 14, 2012
  3. Dec 05, 2012
  4. Dec 04, 2012
  5. Nov 30, 2012
  6. Nov 21, 2012
  7. Nov 20, 2012
    • Iustin Pop's avatar
      Add more basic validation types · edb5a1c8
      Iustin Pop authored
      
      This mirrors the ht.py types PositiveInt, NonNegative, etc., except
      that they work at a more generic level (any numeric type, respectively
      any non-empty list).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAdeodato Simo <dato@google.com>
      edb5a1c8
    • Iustin Pop's avatar
      Create a new Ganeti/Types.hs module · 5e9deac0
      Iustin Pop authored
      There are already three cases where we copied type definitions between
      the htools-specific types into the main ganeti code. Let's stop doing
      this ☺️
      
       and create a common types module that holds these.
      
      Note that there already exists BasicTypes.hs, but that refers to very
      low-level types, and can't use TH derivation itself.
      
      A side effect of this unification is that there is a small conflict
      between AdminStatus/AdminOffline and InstanceStatus/AdminOffline. As
      such, I renamed AdminOffline and AdminDown to StatusOffline/StatusDown
      in the InstanceStatus type.
      
      The patch also moves the tests related to these types to a new test
      module.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarAdeodato Simo <dato@google.com>
      5e9deac0
Loading