ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Program.Hsqueeze

Description

Node freeing scheduler

Synopsis

Documentation

options :: IO [OptType]Source

Options list and functions.

arguments :: [ArgCompletion]Source

The list of arguments supported by the program.

onlyExternal :: (List, List) -> Node -> BoolSource

onlineOfflineNode :: Bool -> (List, List) -> Ndx -> (List, List)Source

onlineOfflineNodes :: Bool -> [Ndx] -> (List, List) -> ((List, List), [MoveJob])Source

canOnlineOffline :: Bool -> Instance -> (List, List) -> [Node] -> BoolSource

canOffline :: Instance -> (List, List) -> [Node] -> BoolSource

tryOnline :: Instance -> (List, List) -> [Node] -> Maybe [Node]Source

getMoveOpCodes :: List -> List -> [JobSet] -> Result [([[OpCode]], String)]Source

getTagOpCodes :: [Node] -> Result [([[OpCode]], String)]Source

getPowerOffOpCodes :: [Node] -> Result [([[OpCode]], String)]Source

getPowerOnOpCodes :: [Node] -> Result [([[OpCode]], String)]Source

maybeExecJobs :: Options -> String -> Result [([[OpCode]], String)] -> IO (Result ())Source

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

Main function.