ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.HTools.Group

Contents

Description

Module describing a node group.

Synopsis

Documentation

data Group #

The node group type.

Constructors

Group 

Fields

Instances

Instances details
Show Group # 
Instance details

Defined in Ganeti.HTools.Group

Methods

showsPrec :: Int -> Group -> ShowS

show :: Group -> String

showList :: [Group] -> ShowS

Element Group # 
Instance details

Defined in Ganeti.HTools.Group

Methods

nameOf :: Group -> String #

allNames :: Group -> [String] #

idxOf :: Group -> Int #

setAlias :: Group -> String -> Group #

computeAlias :: String -> Group -> Group #

setIdx :: Group -> Int -> Group #

Eq Group # 
Instance details

Defined in Ganeti.HTools.Group

Methods

(==) :: Group -> Group -> Bool

(/=) :: Group -> Group -> Bool

type List = Container Group #

A simple name for a node map.

type AssocList = [(Gdx, Group)] #

A simple name for the int, node association list.

Constructor

create #

Arguments

:: String

The node name

-> GroupID

The UUID of the group

-> AllocPolicy

The allocation policy for this group

-> [NetworkID]

The networks connected to this group

-> IPolicy

The instance policy for this group

-> [String]

The tags for this group

-> Group 

Create a new group.

setIdx :: Group -> Gdx -> Group #

Sets the group index.

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

isAllocable :: Group -> Bool #

Checks if a group is allocable.

setUnallocable :: Group -> Group #

Makes the group unallocatable