Statistics
| Branch: | Tag: | Revision:

root / src / Ganeti / WConfd / Core.hs @ 59651d52

History | View | Annotate | Download (1.4 kB)

1
{-# LANGUAGE TemplateHaskell #-}
2

    
3
{-| The Ganeti WConfd core functions.
4

    
5
As TemplateHaskell require that splices be defined in a separate
6
module, we combine all the TemplateHaskell functionality that HTools
7
needs in this module (except the one for unittests).
8

    
9
-}
10

    
11
{-
12

    
13
Copyright (C) 2013 Google Inc.
14

    
15
This program is free software; you can redistribute it and/or modify
16
it under the terms of the GNU General Public License as published by
17
the Free Software Foundation; either version 2 of the License, or
18
(at your option) any later version.
19

    
20
This program is distributed in the hope that it will be useful, but
21
WITHOUT ANY WARRANTY; without even the implied warranty of
22
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
23
General Public License for more details.
24

    
25
You should have received a copy of the GNU General Public License
26
along with this program; if not, write to the Free Software
27
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
28
02110-1301, USA.
29

    
30
-}
31

    
32
module Ganeti.WConfd.Core where
33

    
34
import Language.Haskell.TH (Name)
35

    
36
import Ganeti.WConfd.Monad
37
import Ganeti.WConfd.ConfigWriter
38

    
39
-- * Functions available to the RPC module
40

    
41
-- Just a test function
42
echo :: String -> WConfdMonad String
43
echo = return
44

    
45
-- ** Configuration related functions
46

    
47
-- ** Locking related functions
48

    
49
-- * The list of all functions exported to RPC.
50

    
51
exportedFunctions :: [Name]
52
exportedFunctions = [ 'echo, 'readConfig, 'writeConfig ]