diff options
Diffstat (limited to 'src/vyconf_client.mli')
-rw-r--r-- | src/vyconf_client.mli | 30 |
1 files changed, 8 insertions, 22 deletions
diff --git a/src/vyconf_client.mli b/src/vyconf_client.mli index 5fd4df4..762495d 100644 --- a/src/vyconf_client.mli +++ b/src/vyconf_client.mli @@ -1,33 +1,16 @@ type t -type status = - | Success - | Fail - | Invalid_path - | Invalid_value - | Commit_in_progress - | Configuration_locked - | Internal_error - | Permission_denied - | Path_already_exists - -type response = { - status : status; - output : string option; - error : string option; - warning : string option; -} - - val create : ?token:(string option) -> string -> Vyconf_connect.Vyconf_pbt.request_output_format -> Vyconf_connect.Vyconf_pbt.request_config_format -> t Lwt.t val get_token : t -> (string, string) result Lwt.t val shutdown : t -> t Lwt.t -val get_status : t -> response Lwt.t +val prompt : t -> Vyconf_connect.Vyconf_pbt.response Lwt.t + +val setup_session : ?on_behalf_of:(int option) -> t -> string -> int32 -> (t, string) result Lwt.t -val setup_session : ?on_behalf_of:(int option) -> t -> string -> (t, string) result Lwt.t +val session_of_pid : t -> int32 -> (t, string) result Lwt.t val teardown_session : ?on_behalf_of:(int option) -> t -> (string, string) result Lwt.t @@ -47,7 +30,10 @@ val set : t -> string list -> (string, string) result Lwt.t val delete : t -> string list -> (string, string) result Lwt.t -val commit : t -> (string, string) result Lwt.t +val session_changed : t -> (string, string) result Lwt.t + +val discard : t -> (string, string) result Lwt.t +val commit : t -> (string, string) result Lwt.t val reload_reftree : ?on_behalf_of:(int option) -> t -> (string, string) result Lwt.t |