package irmin

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Sync.NoneSource

None is an implementation of S which does nothing.

Parameters

module H : Type.S
module B : Type.S

Signature

include S with type commit = H.t and type branch = B.t

Remote synchronization

Sourcetype t

The type for store handles.

Sourcetype commit = H.t

The type for store heads.

Sourcetype branch = B.t

The type for branch IDs.

Sourcetype endpoint

The type for sync endpoints.

Sourceval fetch : t -> ?depth:int -> endpoint -> branch -> (commit option, [ `Msg of string ]) result Lwt.t

fetch t uri fetches the contents of the remote store located at uri into the local store t. Return the head of the remote branch with the same name, which is now in the local store. No_head means no such branch exists.

Sourceval push : t -> ?depth:int -> endpoint -> branch -> (unit, [ `Msg of string | `Detached_head ]) result Lwt.t

push t uri pushes the contents of the local store t into the remote store located at uri.

Sourceval v : 'a -> t Lwt.t

Create a remote store handle.

OCaml

Innovation. Community. Security.