package obuilder
Module type S.BUILDERSource
val build :
t ->
context ->
Obuilder_spec.t ->
(id, [> `Cancelled | `Msg of string ]) Lwt_result.tfinish builder close allocated resources and store state (e.g., sqlite3 databases).
delete ?log t id removes id from the store, along with all of its dependencies. This is for testing. Note that is not safe to perform builds while deleting: the delete might fail because an item got a new child during the delete, or we might delete something that the build is using.
prune t ~before n attempts to remove up to n items from the store, all of which were last used before before. Returns the number of items removed.
val count : t -> int64count t return number of items in the store.
val root : t -> stringroot t returns the root of the store.
val shell : t -> string listshell t returns the default shell.
val cache_stats : t -> int * intcache_stats t returns the number of cache hits and the number of cache misses.
val healthcheck :
?timeout:float ->
t ->
(unit, [> `Msg of string ]) Lwt_result.thealthcheck t performs a check that t is working correctly.