| Safe Haskell | Safe-Inferred |
|---|---|
| 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
| IsString ZDataset Source # | |
Defined in Propellor.Types.ZFS Methods fromString :: String -> ZDataset # | |
| Show ZDataset Source # | |
| Eq ZDataset Source # | |
| Ord ZDataset Source # | |
Defined in Propellor.Types.ZFS | |
| 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
| IsString ZFSACLInherit Source # | |
Defined in Propellor.Types.ZFS Methods fromString :: String -> ZFSACLInherit # | |
| Show ZFSACLInherit Source # | |
Defined in Propellor.Types.ZFS Methods showsPrec :: Int -> ZFSACLInherit -> ShowS show :: ZFSACLInherit -> String showList :: [ZFSACLInherit] -> ShowS | |
| 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 | |
| Value ZFSACLInherit Source # | |
Defined in Propellor.Types.ZFS | |
data ZFSACLMode Source #
Constructors
| AMDiscard | |
| AMGroupmask | |
| AMPassthrough |
Instances
| IsString ZFSACLMode Source # | |
Defined in Propellor.Types.ZFS Methods fromString :: String -> ZFSACLMode # | |
| Show ZFSACLMode Source # | |
Defined in Propellor.Types.ZFS Methods showsPrec :: Int -> ZFSACLMode -> ShowS show :: ZFSACLMode -> String showList :: [ZFSACLMode] -> ShowS | |
| 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 | |
| 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
| Show ZFSProperty Source # | |
Defined in Propellor.Types.ZFS Methods showsPrec :: Int -> ZFSProperty -> ShowS show :: ZFSProperty -> String showList :: [ZFSProperty] -> ShowS | |
| 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 | |
toPair :: ZFSProperty -> (String, String) Source #
fromPair :: (String, String) -> ZFSProperty Source #