package sihl

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
include Core.Container.SERVICE
val lifecycle : Core__.Core_container.Lifecycle.t
val start : Core__.Core_ctx.t -> Core__.Core_ctx.t Lwt.t
val stop : Core__.Core_ctx.t -> unit Lwt.t
val register_cleaner : (Core.Ctx.t -> unit Lwt.t) -> unit

Register repository cleaner function.

A cleaner function is used during integration testing to efficiently clean repositories.

val register_cleaners : (Core.Ctx.t -> unit Lwt.t) list -> unit

Register repository cleaner functions.

val clean_all : Core.Ctx.t -> unit Lwt.t

Run all registered repository cleaners.

Use this carefully, running clean_all leads to data loss!

OCaml

Innovation. Community. Security.