/marathonclj

Clojure client for Mesosphere's Marathon

Primary LanguageClojureEclipse Public License 1.0EPL-1.0

marathonclj

A simple Clojure client for the marathon rest api

Build Status

Usage

      (def docker-container
        (json/read-str (slurp "resources/docker_example.json") :key-fn keyword))

      (c/init! (Connection. "http://10.141.141.10:8080" {}))

      (apps/create-app docker-container)

      (deployments/get-deployments)

      (apps/get-apps)

      (pp/pprint (->> (apps/get-apps)
                      :apps
                      first))

      (info/server-info)

      (apps/delete-app "instance1")

##Artifacts

Clojars Project

Implemented so far

  • crud-app operations
  • version(s)
  • restart
  • task(s)
  • metrics
  • groups
  • tasks
  • deployments
  • event subscriptions
  • queue
  • info

##TODO

  • missing api (0.9 -> #1801)
  • some doc
  • more tests

License

Copyright © 2015 FIXME

Licensed under the Eclipse Public License (the same as Clojure)