ganeti
Safe HaskellNone

Ganeti.HTools.Program.Hscan

Description

Scan clusters via RAPI or LUXI and write state data files.

Synopsis

Documentation

options :: IO [OptType] Source #

Options list and functions.

arguments :: [ArgCompletion] Source #

The list of arguments supported by the program.

printCluster :: List -> List -> String Source #

Return a one-line summary of cluster state.

fixSlash :: String -> String Source #

Replace slashes with underscore for saving to filesystem.

processData :: ClockTime -> ClusterData -> Int -> Result ClusterData Source #

Generates serialized data from loader input.

writeData :: Int -> String -> Options -> Result ClusterData -> IO Bool Source #

Writes cluster data out.

writeDataInner :: Int -> String -> Options -> ClusterData -> ClusterData -> IO Bool Source #

Inner function for writing cluster data to disk.

main :: Options -> [String] -> IO () Source #

Main function.