xenstore-0.1.1: Xenstore client access

Safe HaskellNone
LanguageHaskell98

System.Xen.Store

Synopsis

Documentation

data XsHandle #

data Perm #

Instances

Eq Perm # 

Methods

(==) :: Perm -> Perm -> Bool #

(/=) :: Perm -> Perm -> Bool #

Show Perm # 

Methods

showsPrec :: Int -> Perm -> ShowS #

show :: Perm -> String #

showList :: [Perm] -> ShowS #

Serialize Perm # 

Methods

put :: Putter Perm #

get :: Get Perm #

data XsPerms #

Constructors

XsPerms 

Fields

Instances

type XsWatchCallback = XsPath -> IO () #

withXS :: (XsHandle -> IO a) -> IO a #

tryXS :: IO a -> IO (Maybe a) #

xsWrite :: XsHandle -> XsPath -> XsData -> IO () #

write a value to a path in the store.

xsRead :: XsHandle -> XsPath -> IO XsData #

read a value from the path in the store.

xsMkdir :: XsHandle -> XsPath -> IO () #

create a path in the store.

xsRm :: XsHandle -> XsPath -> IO () #

remove a path in the store.

xsDirectory :: XsHandle -> XsPath -> IO [XsPath] #

list entries from this path in the store.

xsWatch :: XsHandle -> XsPath -> XsData -> XsWatchCallback -> IO () #

watch a specific path for change, and execute a specific callback when it's firing

xsUnwatch :: XsHandle -> XsPath -> XsData -> IO () #

unwatch a watch