keystore-0.6.2.0: Managing stores of secret things

Safe HaskellNone

Data.KeyStore.IO.IC

Synopsis

Documentation

data IC Source

Constructors

IC 

Fields

ic_ctx_params :: CtxParams
 
ic_cache :: Maybe (IORef (Ctx, State))
 

data CtxParams Source

The parameters used to set up a KeyStore session.

Constructors

CtxParams 

Fields

cp_store :: Maybe FilePath

location of any explictlt specified keystore file

cp_debug :: Maybe Bool

whether debug output has been specified enabled or not

cp_readonly :: Maybe Bool

Just True => do not update keystore

Instances

Show CtxParams 

defaultSettingsFilePath :: FilePathSource

The default place for keystore settings (settings).

settingsFilePath :: String -> FilePathSource

Add the standard file extension to a base name (.json).

defaultKeyStoreFilePath :: FilePathSource

The default file for a keystore (keystore.json).

determineCtx :: CtxParams -> IO (Ctx, State)Source

Determine the Ctx and keystore State from CtxParams

establishState :: Ctx -> IO StateSource

Set up the keystore state.

readSettings :: FilePath -> IO SettingsSource

Read the JSON-encoded KeyStore settings from the named file.

errorIO :: String -> IO aSource

logit :: Ctx -> LogEntry -> IO ()Source