ganeti-htoolsSource codeContentsIndex
Ganeti.HTools.Group
Contents
Type declarations
Initialization functions
Description
Module describing a node group.
Synopsis
data Group = Group {
name :: String
uuid :: GroupID
idx :: Gdx
allocPolicy :: AllocPolicy
iPolicy :: IPolicy
}
type AssocList = [(Gdx, Group)]
type List = Container Group
create :: String -> GroupID -> AllocPolicy -> IPolicy -> Group
setIdx :: Group -> Gdx -> Group
setName :: Group -> String -> Group
isAllocable :: Group -> Bool
Type declarations
data Group Source
The node group type.
Constructors
Group
name :: StringThe node name
uuid :: GroupIDThe UUID of the group
idx :: GdxInternal index for book-keeping
allocPolicy :: AllocPolicyThe allocation policy for this group
iPolicy :: IPolicyThe instance policy for this group
type AssocList = [(Gdx, Group)]Source
A simple name for the int, node association list.
type List = Container GroupSource
A simple name for a node map.
Initialization functions
create :: String -> GroupID -> AllocPolicy -> IPolicy -> GroupSource
Create a new group.
setIdx :: Group -> Gdx -> GroupSource

Sets the group index.

This is used only during the building of the data structures.

setName :: Group -> String -> GroupSource

Changes the alias.

This is used only during the building of the data structures.

isAllocable :: Group -> BoolSource
Checks if a group is allocable.
Produced by Haddock version 2.6.0