propellor-3.0.5: property-based host configuration management in haskell

Safe HaskellNone
LanguageHaskell98

Propellor.Types.ZFS

Description

Types for ZFS Properties.

Copyright 2016 Evan Cofsky evan@theunixman.com License: BSD 2-clause

Synopsis

Documentation

data ZFS Source

A single ZFS filesystem.

Constructors

ZFS ZPool ZDataset 

Instances

Eq ZFS Source 
Ord ZFS Source 
Show ZFS Source 

data ZPool Source

Represents a zpool.

Constructors

ZPool String 

Instances

Eq ZPool Source 
Ord ZPool Source 
Show ZPool Source 
IsString ZPool Source 

data ZDataset Source

Represents a dataset in a zpool.

Can be constructed from a / separated string.

Constructors

ZDataset [String] 

Instances

toPropertyList :: ZFSProperties -> [(String, String)] Source

fromPropertyList :: [(String, String)] -> ZFSProperties Source

zfsName :: ZFS -> String Source

class Value a where Source

Minimal complete definition

toValue

Methods

toValue :: a -> String Source

fromValue :: IsString a => String -> a Source

data ZFSYesNo Source

Constructors

ZFSYesNo Bool 

data ZFSOnOff Source

Constructors

ZFSOnOff Bool 

data ZFSSize Source

Constructors

ZFSSize Integer 

data ZFSString Source

Constructors

ZFSString String 

toPair :: ZFSProperty -> (String, String) Source

fromPair :: (String, String) -> ZFSProperty Source