ganeti

Safe HaskellNone

Ganeti.HTools.Group

Contents

Description

Module describing a node group.

Synopsis

Type declarations

data Group Source #

The node group type.

Constructors

Group 

Fields

Instances
Eq Group # 
Instance details

Defined in Ganeti.HTools.Group

Methods

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

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

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 Source #

allNames :: Group -> [String] Source #

idxOf :: Group -> Int Source #

setAlias :: Group -> String -> Group Source #

computeAlias :: String -> Group -> Group Source #

setIdx :: Group -> Int -> Group Source #

type AssocList = [(Gdx, Group)] Source #

A simple name for the int, node association list.

type List = Container Group Source #

A simple name for a node map.

Initialization functions

create Source #

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 Source #

Sets the group index.

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

isAllocable :: Group -> Bool Source #

Checks if a group is allocable.

setUnallocable :: Group -> Group Source #

Makes the group unallocatable