package irmin-cli

  1. Overview
  2. Docs

Module Resolver.StoreSource

Sourcemodule Impl : sig ... end
Sourcetype remote_fn = ?ctx:Mimic.ctx -> ?headers:Cohttp.Header.t -> string -> Irmin.remote Lwt.t
Sourcetype t

The type for store configurations. A configuration value contains: the store implementation a creator of store's state and endpoint.

Sourcetype store_functor =
  1. | Fixed_hash of contents -> t
  2. | Variable_hash of hash -> contents -> t
  3. | Fixed of t
    (*

    The type of constructors of a store configuration. Depending on the backend, a store may require a hash function.

    *)
Sourceval v : ?remote:remote_fn -> Irmin.Backend.Conf.Spec.t -> (module Irmin.S with type t = _) -> t
Sourceval v_generic : ?remote:remote_fn -> Irmin.Backend.Conf.Spec.t -> (module Irmin.Generic_key.S with type t = _) -> t
Sourceval mem : hash -> contents -> t
Sourceval fs : hash -> contents -> t
Sourceval git : contents -> t
Sourceval pack : hash -> contents -> t
Sourceval find : string -> store_functor
Sourceval add : string -> ?default:bool -> store_functor -> unit
Sourceval generic_keyed : t -> (module Irmin.Generic_key.S)
Sourceval hash_keyed : t -> (module Irmin.S) option
Sourceval remote : t -> remote_fn option
Sourceval term : unit -> (string option * hash option * string option) Cmdliner.Term.t