Skip to content

Commit cf78141

Browse files
author
Thomas Leonard
committed
Move OCaml client under src so docs build
Also, fix some errors in the doc-strings. Signed-off-by: Thomas Leonard <[email protected]>
1 parent 7a264f3 commit cf78141

7 files changed

+10
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ status updates for that PR.
373373
## Language bindings
374374
375375
* **Go** bindings are in the `api/go` directory.
376-
* **OCaml** bindings are in the `api/ocaml` directory. See `examples/ocaml-client` for an example.
376+
* **OCaml** bindings are in the `src/client` directory. See `examples/ocaml-client` for an example.
377377
378378
## Licensing
379379

_oasis

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Library datakit
1919
Modules: Datakit
2020

2121
Library client
22-
Path: api/ocaml/lib
22+
Path: src/client
2323
Findlibparent: datakit
2424
Findlibname: client
2525
Modules: Datakit_client_9p, Datakit_path, Datakit_S

api/ocaml/lib/datakit_S.mli renamed to src/client/datakit_S.mli

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
(** DataKit client API *)
2+
13
open Result
24

35
type stat = {
@@ -58,6 +60,7 @@ module type CLIENT = sig
5860
the current contents of the branch. *)
5961

6062
(** {2 Reading} *)
63+
6164
include READABLE_TREE with type 'a or_error := 'a or_error
6265

6366
(** {2 Writing} *)
@@ -157,7 +160,7 @@ module type CLIENT = sig
157160
([`File of Cstruct.t | `Dir of Tree.t | `Link of string | `Exec of Cstruct.t] option ->
158161
[`Finish of 'a | `Again | `Abort] or_error Lwt.t) ->
159162
[`Abort | `Finish of 'a] or_error Lwt.t
160-
(** [wait_for_path is similar to [wait_for_head], but waits for a particular sub-tree to change. *)
163+
(** [wait_for_path] is similar to [wait_for_head], but waits for a particular sub-tree to change. *)
161164

162165
val fast_forward : t -> Commit.t -> unit or_error Lwt.t
163166
(** [fast_forward t commit] changes [t] to point to [commit] if [t]'s head is an ancestor of [commit]
File renamed without changes.

api/ocaml/lib/datakit_client_9p.mli renamed to src/client/datakit_client_9p.mli

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
(** A DataKit client that connects to the server over a 9p connection. *)
2+
13
module Make(P9p : Protocol_9p_client.S) : sig
24
include Datakit_S.CLIENT with type error = Protocol_9p_error.error
35

File renamed without changes.

api/ocaml/lib/datakit_path.mli renamed to src/client/datakit_path.mli

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
(** Locate files and directories within a DataKit tree. *)
2+
13
open Result
24

35
type t

0 commit comments

Comments
 (0)