Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Propellor.Types.ZFS
Description
Types for ZFS Properties.
Copyright 2016 Evan Cofsky evan@theunixman.com License: BSD 2-clause
Synopsis
- 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
Represents a zpool.
Constructors
ZPool String |
Represents a dataset in a zpool.
Can be constructed from a / separated string.
Constructors
ZDataset [String] |
Instances
Eq ZDataset Source # | |
Ord ZDataset Source # | |
Defined in Propellor.Types.ZFS | |
Show ZDataset Source # | |
IsString ZDataset Source # | |
Defined in Propellor.Types.ZFS Methods fromString :: String -> ZDataset # | |
ConfigurableValue ZDataset Source # | |
Defined in Propellor.Types.ZFS |
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 # | |
Defined in Propellor.Types.ZFS | |
Ord ZFSACLInherit Source # | |
Defined in Propellor.Types.ZFS Methods compare :: ZFSACLInherit -> ZFSACLInherit -> Ordering (<) :: ZFSACLInherit -> ZFSACLInherit -> Bool (<=) :: ZFSACLInherit -> ZFSACLInherit -> Bool (>) :: ZFSACLInherit -> ZFSACLInherit -> Bool (>=) :: ZFSACLInherit -> ZFSACLInherit -> Bool max :: ZFSACLInherit -> ZFSACLInherit -> ZFSACLInherit min :: ZFSACLInherit -> ZFSACLInherit -> ZFSACLInherit | |
Show ZFSACLInherit Source # | |
Defined in Propellor.Types.ZFS Methods showsPrec :: Int -> ZFSACLInherit -> ShowS show :: ZFSACLInherit -> String showList :: [ZFSACLInherit] -> ShowS | |
IsString ZFSACLInherit Source # | |
Defined in Propellor.Types.ZFS Methods fromString :: String -> ZFSACLInherit # | |
Value ZFSACLInherit Source # | |
Defined in Propellor.Types.ZFS |
data ZFSACLMode Source #
Constructors
AMDiscard | |
AMGroupmask | |
AMPassthrough |
Instances
Eq ZFSACLMode Source # | |
Defined in Propellor.Types.ZFS | |
Ord ZFSACLMode Source # | |
Defined in Propellor.Types.ZFS Methods compare :: ZFSACLMode -> ZFSACLMode -> Ordering (<) :: ZFSACLMode -> ZFSACLMode -> Bool (<=) :: ZFSACLMode -> ZFSACLMode -> Bool (>) :: ZFSACLMode -> ZFSACLMode -> Bool (>=) :: ZFSACLMode -> ZFSACLMode -> Bool max :: ZFSACLMode -> ZFSACLMode -> ZFSACLMode min :: ZFSACLMode -> ZFSACLMode -> ZFSACLMode | |
Show ZFSACLMode Source # | |
Defined in Propellor.Types.ZFS Methods showsPrec :: Int -> ZFSACLMode -> ShowS show :: ZFSACLMode -> String showList :: [ZFSACLMode] -> ShowS | |
IsString ZFSACLMode Source # | |
Defined in Propellor.Types.ZFS Methods fromString :: String -> ZFSACLMode # | |
Value ZFSACLMode Source # | |
Defined in Propellor.Types.ZFS |
data ZFSProperty Source #
Constructors
Mounted ZFSYesNo | |
Mountpoint ZFSString | |
ReadOnly ZFSYesNo | |
ACLInherit ZFSACLInherit | |
ACLMode ZFSACLMode | |
StringProperty String ZFSString |
Instances
Eq ZFSProperty Source # | |
Defined in Propellor.Types.ZFS | |
Ord ZFSProperty Source # | |
Defined in Propellor.Types.ZFS Methods compare :: ZFSProperty -> ZFSProperty -> Ordering (<) :: ZFSProperty -> ZFSProperty -> Bool (<=) :: ZFSProperty -> ZFSProperty -> Bool (>) :: ZFSProperty -> ZFSProperty -> Bool (>=) :: ZFSProperty -> ZFSProperty -> Bool max :: ZFSProperty -> ZFSProperty -> ZFSProperty min :: ZFSProperty -> ZFSProperty -> ZFSProperty | |
Show ZFSProperty Source # | |
Defined in Propellor.Types.ZFS Methods showsPrec :: Int -> ZFSProperty -> ShowS show :: ZFSProperty -> String showList :: [ZFSProperty] -> ShowS |
toPair :: ZFSProperty -> (String, String) Source #
fromPair :: (String, String) -> ZFSProperty Source #