ganeti

Safe HaskellSafe-Infered

Ganeti.HTools.Group

Contents

Description

Module describing a node group.

Synopsis

Type declarations

data Group Source

The node group type.

Constructors

Group 

Fields

name :: String

The node name

uuid :: GroupID

The UUID of the group

idx :: Gdx

Internal index for book-keeping

allocPolicy :: AllocPolicy

The allocation policy for this group

iPolicy :: IPolicy

The instance policy for this group

allTags :: [String]

The tags for this group

Instances

Eq Group 
Show Group 
Element 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 -> [String] -> 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

isAllocable :: Group -> BoolSource

Checks if a group is allocable.