package rashell

  1. Overview
  2. Docs
type state = Rashell_Docker_t.state = {
  1. state_error : string;
  2. state_exit_code : int;
  3. state_finished_at : string;
  4. state_started_at : string;
  5. state_pid : int;
  6. state_running : bool;
  7. state_restarting : bool;
  8. state_paused : bool;
  9. state_oomkilled : bool;
}
type config = Rashell_Docker_t.config = {
  1. config_attach_stderr : bool;
  2. config_attach_stdout : bool;
  3. config_attach_stdin : bool;
  4. config_cmd : string list option;
  5. config_cpu_shares : int;
  6. config_domainname : string;
  7. config_entrypoint : string Ag_util.ocaml_array option;
  8. config_env : string Ag_util.ocaml_array option;
  9. config_hostname : string;
  10. config_image : string;
  11. config_working_dir : string;
}
type image = Rashell_Docker_t.image = {
  1. image_config : config option;
  2. image_id : string;
  3. image_comment : string;
  4. image_created : string;
  5. image_parent : string option;
  6. image_virtual_size : int;
  7. image_size : int;
  8. image_docker_version : string;
}
type container = Rashell_Docker_t.container = {
  1. container_config : config;
  2. container_id : string;
  3. container_image : string;
  4. container_name : string;
  5. container_created : string;
  6. container_args : string list;
  7. container_path : string;
  8. container_restart_count : int;
  9. container_volumes : (string * string) list;
  10. container_volumes_rw : (string * bool) list;
  11. container_state : state;
}
type containers = Rashell_Docker_t.containers
val write_state : Bi_outbuf.t -> state -> unit
val string_of_state : ?len:int -> state -> string
val state_of_string : string -> state
val write_config : Bi_outbuf.t -> config -> unit
val string_of_config : ?len:int -> config -> string
val config_of_string : string -> config
val write_image : Bi_outbuf.t -> image -> unit
val string_of_image : ?len:int -> image -> string
val image_of_string : string -> image
val write_images : Bi_outbuf.t -> images -> unit
val string_of_images : ?len:int -> images -> string
val images_of_string : string -> images
val write_container : Bi_outbuf.t -> container -> unit
val string_of_container : ?len:int -> container -> string
val container_of_string : string -> container
val write_containers : Bi_outbuf.t -> containers -> unit
val string_of_containers : ?len:int -> containers -> string
val containers_of_string : string -> containers
OCaml

Innovation. Community. Security.