Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti @ 661c765b

Name Size
  Confd
  Cpu
  Curl
  DataCollectors
  HTools
  Hs2Py
  Hypervisor
  Monitoring
  Query
  Storage
BasicTypes.hs 7.8 kB
Common.hs 14.4 kB
Compat.hs 1.4 kB
Config.hs 11.6 kB
ConfigReader.hs 11.6 kB
ConstantUtils.hs 2.9 kB
Constants.hs 990 Bytes
Daemon.hs 14.8 kB
Errors.hs 6.2 kB
Hash.hs 1.8 kB
HsConstants.hs 7.8 kB
JQueue.hs 10.7 kB
JSON.hs 9.9 kB
Jobs.hs 3.3 kB
Logging.hs 4.6 kB
Luxi.hs 15.8 kB
Network.hs 3.5 kB
Objects.hs 25.2 kB
OpCodes.hs 27 kB
OpParams.hs 44.9 kB
Parsers.hs 1.7 kB
Path.hs 3.4 kB
PyConstants.hs.in 945 Bytes
PyValueInstances.hs 2 kB
Rpc.hs 16.2 kB
Runtime.hs 6.9 kB
Ssconf.hs 5 kB
THH.hs 46.2 kB
Types.hs 21.8 kB
Utils.hs 16.5 kB
Version.hs.in 246 Bytes

Latest revisions

# Date Author Comment
661c765b 09/19/2013 11:52 am Jose A. Lopes

Rename 'ExportModeRemove' to 'ExportModeRemote'

In "Ganeti.Types", rename constructor "ExportModeRemove" of
"ExportMode" to "ExportModeRemote". This fixes issue 577.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

9f312bae 09/19/2013 11:52 am Jose A. Lopes

Fix 'NICMode' missing 'NIC_IP_POOL'

Fix, in 'Ganeti.Types', data type 'NICMode', which is missing a
constructor which is the counterpart of the Python constant
'NIC_IP_POOL'. This fixes issue 576.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

72e18df1 09/19/2013 11:52 am Jose A. Lopes

Change all types in 'Types' to use String

Haskell types should be the source of information related to
constants. Therefore, instead of building the Haskell types from the
constants, the constants should be taken from the Haskell types. This
patch updates all the types defined in 'Ganeti.Types' to follow this...

9ee75f25 09/19/2013 11:51 am Jose A. Lopes

Add missing exports in 'Ganeti.Types'

Add missing exports in 'Ganeti.Types' which are necessary for
'Ganeti.HsConstants'. These exports concern the '*ToRaw' functions
which convert a Haskell type into JSON. These functions are needed by
the constants which we want to generate from Haskell to Python based...

7236533e 09/18/2013 02:33 pm Jose A. Lopes

Hs2Py constants: add xen related constants

Add xen related constants, such as, 'xenBootloader' and 'xenCmdXm' to
the Haskell to Python constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

df726590 09/18/2013 02:33 pm Jose A. Lopes

Hs2Py constants: add 'devConsole' and syslog related

Add 'devConsole' and syslog related constants to the Haskell to Python
constant generation.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

e82d1e98 09/18/2013 02:33 pm Jose A. Lopes

Add Template Haskell 'declareLADT'

Add 'declareLADT' in Template Haskell module to declare Haskell
datatypes using 'String's directly as values for the JSON
serialization, as opposed to 'Name's which is what the current
'declareADT' allows. To achieve this, 'genFromRaw' must be...

43a9e860 09/18/2013 11:55 am Jose A. Lopes

Haskell to Python constants: add exit code constants

Add exit code constants to Haskell to Python constant generation
infrastructure. The module 'Ganeti.ConstantUtils' must be imported
qualified in order to avoid a clash between
'Ganeti.ConstantUtils.exitFailure' and...

856eb53c 09/18/2013 11:55 am Jose A. Lopes

Haskell to Python constants: add 'daemonsLogbase'

Move constant 'DAEMONS_LOGBASE' from Python to Haskell to be
automatically generated.

Signed-off-by: Jose A. Lopes <>
Reviewed-by: Klaus Aehlig <>

1c31b263 09/18/2013 11:55 am Jose A. Lopes

Flip dependency between Haskell types and constants

Before this patch, Haskell types, such as, 'GanetiDaemon' and
'GanetiGroup', and related functions were taking their values from
Haskell constants. However, given that the role of Haskell to Python
constants is to leverage Haskell and its typesystem, it makes sense to...

View revisions

Also available in: Atom