diff options
author | Daniil Baturin <daniil@vyos.io> | 2025-04-15 15:12:02 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-15 15:12:02 +0100 |
commit | 4f8cd87849ae16f5efb127b63767176a243bcd8d (patch) | |
tree | 29f42006c605a639ec0a1bcc467225ec880c7e5f /src/vyconf_client.mli | |
parent | 61566db58d2b5f8eacbd1564ba1ae0690ac4b1f6 (diff) | |
parent | f6653abbc5d4a5229fafa49d49bf517f6baada33 (diff) | |
download | vyconf-master.tar.gz vyconf-master.zip |
T7321: Replace legacy operations in configsession.py with vyconf client operations
Diffstat (limited to 'src/vyconf_client.mli')
-rw-r--r-- | src/vyconf_client.mli | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/src/vyconf_client.mli b/src/vyconf_client.mli index 5fd4df4..9c25c60 100644 --- a/src/vyconf_client.mli +++ b/src/vyconf_client.mli @@ -1,31 +1,12 @@ 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 -> (t, string) result Lwt.t |