fleet_submit_extempore_service   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/fleet.xtm

Implementation

(bind-func fleet_submit_extempore_service
  (let ((url:i8* (zalloc 256)))
    (lambda (host:i8* port:i32)
      (sprintf url "http://%s:%d/%s/units/extempore.service" host port FLEET_API_VERSION)
      (let ((body (json_object))
            ;; (options (json_array))
            (err:json_error_t* (zalloc)))
        ;; create the extempore unit (JSON version)
        (json_object_set_new body "desiredState" (json_string "inactive"))
        ;; set the options
        (json_object_set_new
         body
         "options"
         (json_loads
          "[{\\22section\\22: \\22Unit\\22, \\22name\\22: \\22After\\22, \\22value\\22: \\22docker.service\\22}
            {\\22section\\22: \\22Unit\\22, \\22name\\22: \\22Requires\\22, \\22value\\22: \\22docker.service\\22}


Back to Index

Similar Entries

  • fleet-connect    scheme    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet-eval    scheme    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet-killemall    scheme    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_connect_to_nodes    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_delete_unit    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_api    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_ip_list    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_machines    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_get_units    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_message_all_nodes_sync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_message_node_sync    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_machines    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_unit    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_unit_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_print_units    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_response_error_p    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_set_unit_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • fleet_set_unit_state    xtlang    /digego/extempore/tree/v0.8.9/libs/external/fleet.xtm
  • ghttp_set_extempore_user_agent    xtlang    /digego/extempore/tree/v0.8.9/libs/external/ghttp.xtm