package equinoxe-hlc

  1. Overview
  2. Docs
type id
val id_of_string : string -> id
type action =
  1. | Power_on
  2. | Power_off
  3. | Reboot
  4. | Reinstall
  5. | Rescue
val action_to_string : action -> string
type os =
  1. | Debian_9
  2. | Debian_10
  3. | NixOs_21_05
  4. | Ubuntu_18_04
  5. | Ubuntu_20_04
  6. | Ubuntu_21_04
  7. | FreeBSD_11_2
  8. | Centos_8
  9. | Alpine_3
val os_to_string : os -> string
type location =
  1. | Washington
  2. | Dallas
  3. | Silicon_valley
  4. | Sao_paulo
  5. | Amsterdam
  6. | Frankfurt
  7. | Singapore
  8. | Sydney
val location_to_string : location -> string
type plan =
  1. | C3_small_x86
  2. | C3_medium_x86
val plan_to_string : plan -> string
type builder
val build : ?hostname:string -> plan:plan -> os:os -> location:location -> unit -> builder
type config = {
  1. id : id;
  2. hostname : string;
  3. location : location;
  4. plan : plan;
  5. os : os;
  6. state : State.t;
  7. tags : string list;
  8. user : string;
  9. created_at : Equinoxe__Equinoxe_intf.Date.t;
  10. ips : Ip.config list;
}
val to_string : config -> string
val get_from : t -> id:id -> config io
val get_events_from : t -> id:id -> Event.t list io
val execute_action_on : t -> id:id -> action:action -> unit io
val delete : t -> id:id -> ?force:bool -> unit -> unit io
val create : t -> id:Project.id -> builder -> config io
val get_all_from_project : t -> id:Project.id -> config list io
val pp : config -> unit
OCaml

Innovation. Community. Security.