Module Awa.Client

type t
val make : Keys.authenticator -> user:string -> [ `Pubkey of Hostkey.priv | `Password of string ] -> t * string list
type event = [
  1. | `Established of int
  2. | `Channel_data of int * string
  3. | `Channel_stderr of int * string
  4. | `Channel_eof of int
  5. | `Channel_exit_status of int * int
  6. | `Disconnected
]
val pp_event : Stdlib.Format.formatter -> event -> unit
val incoming : t -> Mtime.t -> string -> (t * string list * event list, string) Stdlib.result
val outgoing_request : t -> ?id:int -> ?want_reply:bool -> Ssh.channel_request -> (t * string, string) Stdlib.result
val outgoing_data : t -> ?id:int -> string -> (t * string list, string) Stdlib.result
val eof : ?id:int -> t -> t * string list
val close : ?id:int -> t -> t * string option