Safe Haskell | None |
---|
- data Xen a
- domainGetInfo :: Xen [DomainInfo]
- withXenHandle :: (XcHandle -> Xen a) -> Xen a
- runXen :: MonadBaseControl IO m => Xen a -> m (Either SomeException a)
Documentation
domainGetInfo :: Xen [DomainInfo]Source
Returns a lift of domains, this function can fail with
InvalidDomainShutdownReason
and
DomainGetInfoError
.
withXenHandle :: (XcHandle -> Xen a) -> Xen aSource
Helper function for creating high-level interface functions from mid-level.
Generally high-level function is just highLevel = withXenHandle midLevel
.
runXen :: MonadBaseControl IO m => Xen a -> m (Either SomeException a)Source
Open new connection to the hypervisor, run any Xen
action and close
connection if nessesary. This function can fail with Either SomeException
with
XcHandleOpenError
and any error of providing Xen
action.