ldif-0.0.2: The LDAP Data Interchange Format (LDIF) parserSource codeContentsIndex
Text.LDIF.Types
Description
LDIF related types
Synopsis
data LDIF
= LDIFContent {
lcVersion :: Maybe String
lcEntries :: [ContentRecord]
}
| LDIFChanges {
lcVersion :: Maybe String
lcChanges :: [ChangeRecord]
}
data ContentRecord = ContentRecord {
coDN :: DN
coAttrVals :: [AttrValue]
}
data ChangeRecord = ChangeRecord {
chDN :: DN
chOp :: Change
}
data Change
= ChangeAdd {
chAttrVals :: [AttrValue]
}
| ChangeDelete
| ChangeModify {
chMods :: [Modify]
}
| ChangeModDN
data Modify
= ModAdd {
modAttr :: Attribute
modAttrVals :: [Value]
}
| ModDelete {
modAttr :: Attribute
modAttrVals :: [Value]
}
| ModReplace {
modAttr :: Attribute
modAttrVals :: [Value]
}
data DN = DN {
dnAttrVals :: [AttrValue]
}
type Attribute = String
type Value = String
type AttrValue = (Attribute, Value)
Documentation
data LDIF Source
Represents LDIF structure, it can be either simply LDIF data dump or | changes LDIF with LDAP operations
Constructors
LDIFContent
lcVersion :: Maybe String
lcEntries :: [ContentRecord]
LDIFChanges
lcVersion :: Maybe String
lcChanges :: [ChangeRecord]
show/hide Instances
data ContentRecord Source
Represents one data record within LDIF file with DN and content
Constructors
ContentRecord
coDN :: DN
coAttrVals :: [AttrValue]
show/hide Instances
data ChangeRecord Source
Represents one change record within LDIF file with DN and content
Constructors
ChangeRecord
chDN :: DN
chOp :: Change
show/hide Instances
data Change Source
Represents one LDAP operation within changes LDIF
Constructors
ChangeAdd
chAttrVals :: [AttrValue]
ChangeDelete
ChangeModify
chMods :: [Modify]
ChangeModDN
show/hide Instances
data Modify Source
Represents ChangeModify operations upon one entry within given DN
Constructors
ModAdd
modAttr :: Attribute
modAttrVals :: [Value]
ModDelete
modAttr :: Attribute
modAttrVals :: [Value]
ModReplace
modAttr :: Attribute
modAttrVals :: [Value]
show/hide Instances
data DN Source
Represents Distinguished Name (DN)
Constructors
DN
dnAttrVals :: [AttrValue]
show/hide Instances
type Attribute = StringSource
type Value = StringSource
type AttrValue = (Attribute, Value)Source
Produced by Haddock version 2.4.2