package sihl-contract

  1. Overview
  2. Docs
val register_cleaner : Sihl_type.Cleaner.t -> unit

Register repository cleaner function.

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

val register_cleaners : Sihl_type.Cleaner.t list -> unit

Register repository cleaner functions.

val clean_all : unit -> unit Lwt.t

Run all registered repository cleaners.

Use this carefully, running clean_all leads to data loss!

val register : ?cleaners:Sihl_type.Cleaner.t list -> unit -> Sihl_core.Container.Service.t

Innovation. Community. Security.