Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Propellor.Types.ZFS
Description
Types for ZFS Properties.
Copyright 2016 Evan Cofsky evan@theunixman.com License: BSD 2-clause
- data ZFS = ZFS ZPool ZDataset
- data ZPool = ZPool String
- data ZDataset = ZDataset [String]
- type ZFSProperties = Set ZFSProperty
- fromList :: [ZFSProperty] -> ZFSProperties
- toPropertyList :: ZFSProperties -> [(String, String)]
- fromPropertyList :: [(String, String)] -> ZFSProperties
- zfsName :: ZFS -> String
- class Value a where
- data ZFSYesNo = ZFSYesNo Bool
- data ZFSOnOff = ZFSOnOff Bool
- data ZFSSize = ZFSSize Integer
- data ZFSString = ZFSString String
- data ZFSACLInherit
- data ZFSACLMode
- data ZFSProperty
- toPair :: ZFSProperty -> (String, String)
- fromPair :: (String, String) -> ZFSProperty
Documentation
A single ZFS filesystem.
Represents a zpool.
Constructors
ZPool String |
Represents a dataset in a zpool.
Can be constructed from a / separated string.
Constructors
ZDataset [String] |
type ZFSProperties = Set ZFSProperty Source #
fromList :: [ZFSProperty] -> ZFSProperties Source #
toPropertyList :: ZFSProperties -> [(String, String)] Source #
fromPropertyList :: [(String, String)] -> ZFSProperties Source #
Minimal complete definition
Constructors
ZFSYesNo Bool |
Constructors
ZFSOnOff Bool |
Constructors
ZFSSize Integer |
Constructors
ZFSString String |
data ZFSACLInherit Source #
Constructors
AIDiscard | |
AINoAllow | |
AISecure | |
AIPassthrough |
Instances
Eq ZFSACLInherit Source # | |
Ord ZFSACLInherit Source # | |
Show ZFSACLInherit Source # | |
IsString ZFSACLInherit Source # | |
Value ZFSACLInherit Source # | |
data ZFSACLMode Source #
Constructors
AMDiscard | |
AMGroupmask | |
AMPassthrough |
Instances
Eq ZFSACLMode Source # | |
Ord ZFSACLMode Source # | |
Show ZFSACLMode Source # | |
IsString ZFSACLMode Source # | |
Value ZFSACLMode Source # | |
data ZFSProperty Source #
Constructors
Mounted ZFSYesNo | |
Mountpoint ZFSString | |
ReadOnly ZFSYesNo | |
ACLInherit ZFSACLInherit | |
ACLMode ZFSACLMode | |
StringProperty String ZFSString |
Instances
Eq ZFSProperty Source # | |
Ord ZFSProperty Source # | |
Show ZFSProperty Source # | |
toPair :: ZFSProperty -> (String, String) Source #
fromPair :: (String, String) -> ZFSProperty Source #