ganeti
Safe HaskellNone

Ganeti.Storage.Lvm.Types

Description

LVM data types

This module holds the definition of the data types describing the status of the disks according to LVM (and particularly the lvs tool).

Synopsis

Documentation

data LVInfo Source #

This is the format of the report produced by each data collector.

Constructors

LVInfo 

Fields

Instances

Instances details
Eq LVInfo # 
Instance details

Defined in Ganeti.Storage.Lvm.Types

Methods

(==) :: LVInfo -> LVInfo -> Bool

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

Show LVInfo # 
Instance details

Defined in Ganeti.Storage.Lvm.Types

Methods

showsPrec :: Int -> LVInfo -> ShowS

show :: LVInfo -> String

showList :: [LVInfo] -> ShowS

JSON LVInfo # 
Instance details

Defined in Ganeti.Storage.Lvm.Types

Methods

readJSON :: JSValue -> Result LVInfo

showJSON :: LVInfo -> JSValue

readJSONs :: JSValue -> Result [LVInfo]

showJSONs :: [LVInfo] -> JSValue

ArrayObject LVInfo # 
Instance details

Defined in Ganeti.Storage.Lvm.Types

Methods

toJSArray :: LVInfo -> [JSValue] Source #

fromJSArray :: [JSValue] -> Result LVInfo Source #

DictObject LVInfo # 
Instance details

Defined in Ganeti.Storage.Lvm.Types

Methods

toDict :: LVInfo -> [(String, JSValue)] Source #

fromDictWKeys :: [(String, JSValue)] -> WriterT UsedKeys Result LVInfo Source #

fromDict :: [(String, JSValue)] -> Result LVInfo Source #

Arbitrary LVInfo

Arbitrary instance for LVInfo. The instance is always Nothing because it is not part of the parsed data: it is added afterwards from a different source.

Instance details

Defined in Test.Ganeti.Storage.Lvm.LVParser

Methods

arbitrary :: Gen LVInfo

shrink :: LVInfo -> [LVInfo]

loadLVInfo :: JSValue -> Result LVInfo Source #

saveLVInfo :: LVInfo -> JSValue Source #