|
|
|
| Description |
Implementation of command-line functions.
This module holds the common cli-related functions for the binaries,
separated into this module since Utils.hs is used in many other places
and this is more IO oriented.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| defaultLuxiSocket :: FilePath | Source |
|
| The default value for the luxi socket
|
|
|
| Command line options structure.
| | Constructors | | Options | | | optDataFile :: Maybe FilePath | Path to the cluster data file
| | optDiskMoves :: Bool | Allow disk moves
| | optDynuFile :: Maybe FilePath | Optional file with dynamic use data
| | optEvacMode :: Bool | Enable evacuation mode
| | optExInst :: [String] | Instances to be excluded
| | optExTags :: Maybe [String] | Tags to use for exclusion
| | optExecJobs :: Bool | Execute the commands via Luxi
| | optGroup :: Maybe GroupID | The UUID of the group to process
| | optINodes :: Int | Nodes required for an instance
| | optISpec :: RSpec | Requested instance specs
| | optLuxi :: Maybe FilePath | Collect data from Luxi
| | optMaster :: String | Collect data from RAPI
| | optMaxLength :: Int | Stop after this many steps
| | optMcpu :: Double | Max cpu ratio for nodes
| | optMdsk :: Double | Max disk usage ratio for nodes
| | optMinGain :: Score | Min gain we aim for in a step
| | optMinGainLim :: Score | Limit below which we apply mingain
| | optMinScore :: Score | The minimum score we aim for
| | optNoHeaders :: Bool | Do not show a header line
| | optNodeSim :: [String] | Cluster simulation mode
| | optOffline :: [String] | Names of offline nodes
| | optOneline :: Bool | Switch output to a single line
| | optOutPath :: FilePath | Path to the output directory
| | optSaveCluster :: Maybe FilePath | Save cluster state to this file
| | optShowCmds :: Maybe FilePath | Whether to show the command list
| | optShowHelp :: Bool | Just show the help
| | optShowInsts :: Bool | Whether to show the instance map
| | optShowNodes :: Maybe [String] | Whether to show node status
| | optShowVer :: Bool | Just show the program version
| | optTieredSpec :: Maybe RSpec | Requested specs for tiered mode
| | optVerbose :: Int | Verbosity level
|
|
|
|
|
|
| Default values for the command line options.
|
|
|
| Abrreviation for the option type
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Usage info
|
|
|
| :: [String] | The command line arguments
| | -> String | The program name
| | -> [OptType] | The supported command line options
| | -> IO (Options, [String]) | The resulting options and leftover
arguments
| | Command line parser, using the options structure.
|
|
|
|
| A shell script template for autogenerated scripts.
|
|
|
| :: Maybe [String] | The field list
| | -> String | Informational message
| | -> [String] -> String | Function to generate the listing
| | -> IO () | | | Optionally print the node list.
|
|
|
|
| :: Bool | Whether to print the instance list
| | -> String | Type of the instance map (e.g. initial)
| | -> String | The instance data
| | -> IO () | | | Optionally print the instance list.
|
|
|
| Produced by Haddock version 2.6.0 |