ganeti-3.1: Cluster-based virtualization management software
Safe HaskellSafe-Inferred
LanguageHaskell2010

Ganeti.WConfd.Persistent

Description

Common types and functions for persistent resources

In particular: - locks - temporary reservations

Synopsis

Documentation

data Persistent a #

A collection of operations needed for persisting a resource.

Constructors

Persistent 

Fields

writePersistentAsyncTask :: JSON a => Persistent a -> IO a -> ResultG (AsyncWorker () ()) #

Construct an asynchronous worker whose action is to save the current state of the persistent state. The worker's action reads the state using the given IO action. Any inbetween changes to the file are tacitly ignored.

readPersistent :: JSON a => Persistent a -> ResultG a #

Load a persistent data structure from disk.