ganeti-htoolsSource codeContentsIndex
Ganeti.HTools.Program.Hscan
Description
Scan clusters via RAPI or LUXI and write state data files.
Synopsis
options :: [OptType]
printCluster :: List -> List -> String
fixSlash :: String -> String
processData :: ClusterData -> Result ClusterData
writeData :: Int -> String -> Options -> Result ClusterData -> IO Bool
writeDataInner :: Int -> String -> Options -> ClusterData -> ClusterData -> IO Bool
main :: Options -> [String] -> IO ()
Documentation
options :: [OptType]Source
Options list and functions.
printCluster :: List -> List -> StringSource
Return a one-line summary of cluster state.
fixSlash :: String -> StringSource
Replace slashes with underscore for saving to filesystem.
processData :: ClusterData -> Result ClusterDataSource
Generates serialized data from loader input.
writeData :: Int -> String -> Options -> Result ClusterData -> IO BoolSource
Writes cluster data out.
writeDataInner :: Int -> String -> Options -> ClusterData -> ClusterData -> IO BoolSource
Inner function for writing cluster data to disk.
main :: Options -> [String] -> IO ()Source
Main function.
Produced by Haddock version 2.6.0