2016-09-08 21:13:10 +04:00
|
|
|
(**************************************************************************)
|
|
|
|
(* *)
|
|
|
|
(* Copyright (c) 2014 - 2016. *)
|
|
|
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
|
|
|
(* *)
|
|
|
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
|
|
|
(* *)
|
|
|
|
(**************************************************************************)
|
|
|
|
|
|
|
|
|
|
|
|
module type Entity = sig
|
|
|
|
type t
|
|
|
|
val encoding : t Data_encoding.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val of_source :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> t tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val to_source :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
t -> string tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
val name : string
|
|
|
|
end
|
|
|
|
|
|
|
|
module type Alias = sig
|
|
|
|
type t
|
2016-12-03 16:05:02 +04:00
|
|
|
val load :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
(string * t) list tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val find :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> t tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val find_opt :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> t option tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val rev_find :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
t -> string option tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val name :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
t -> string tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val mem :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> bool tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val add :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> t -> unit tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val del :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> unit tzresult Lwt.t
|
2017-03-15 04:27:34 +04:00
|
|
|
val update :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> t -> unit tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val save :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
(string * t) list -> unit tzresult Lwt.t
|
2017-03-15 04:27:34 +04:00
|
|
|
val of_source :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
string -> t tzresult Lwt.t
|
2016-12-03 16:05:02 +04:00
|
|
|
val to_source :
|
|
|
|
Client_commands.context ->
|
2017-04-05 03:02:10 +04:00
|
|
|
t -> string tzresult Lwt.t
|
2016-09-08 21:13:10 +04:00
|
|
|
val alias_param :
|
2016-11-22 17:23:40 +04:00
|
|
|
?name:string ->
|
2016-09-08 21:13:10 +04:00
|
|
|
?desc:string ->
|
2016-12-03 16:05:02 +04:00
|
|
|
('a, Client_commands.context, 'ret) Cli_entries.params ->
|
|
|
|
(string * t -> 'a, Client_commands.context, 'ret) Cli_entries.params
|
2016-09-08 21:13:10 +04:00
|
|
|
val fresh_alias_param :
|
2016-11-22 17:23:40 +04:00
|
|
|
?name:string ->
|
2016-09-08 21:13:10 +04:00
|
|
|
?desc:string ->
|
2016-12-03 16:05:02 +04:00
|
|
|
('a, Client_commands.context, 'ret) Cli_entries.params ->
|
|
|
|
(string -> 'a, Client_commands.context, 'ret) Cli_entries.params
|
2016-09-08 21:13:10 +04:00
|
|
|
val source_param :
|
2016-11-22 17:23:40 +04:00
|
|
|
?name:string ->
|
2016-09-08 21:13:10 +04:00
|
|
|
?desc:string ->
|
2016-12-03 16:05:02 +04:00
|
|
|
('a, Client_commands.context, 'ret) Cli_entries.params ->
|
|
|
|
(t -> 'a, Client_commands.context, 'ret) Cli_entries.params
|
2016-09-08 21:13:10 +04:00
|
|
|
end
|
|
|
|
module Alias (Entity : Entity) : Alias with type t = Entity.t
|