package corosync
Module Corosync_tools.CmapctlSource
Source
val get :
'a Corosync_lib.Cmap.CmapValue.value ->
string ->
('a, Corosync_lib.Corotypes.CsError.t) resultget key will retrieve the value associated with the key in corosync cmap. User of this function should understand what the underlying type of each key is and supply that type into this function. The type information for cmap can be retrieved by doing a corosync-cmapctl call and examining the types.
Source
val set :
string ->
'a Corosync_lib.Cmap.CmapValue.value ->
(unit, Corosync_lib.Corotypes.CsError.t) resultset key value sets the cmap in memory database key to value
get_prefix prefix will return a list of (k,v) where k has a prefix of prefix. It is recommended to use the get function where possible since that function is more type safe.