This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-11-08
Channels
- # 100-days-of-code (1)
- # admin-announcements (1)
- # aleph (1)
- # announcements (9)
- # beginners (125)
- # cider (1)
- # cljs-dev (80)
- # cljsrn (2)
- # clojure (82)
- # clojure-czech (1)
- # clojure-dev (5)
- # clojure-finland (1)
- # clojure-italy (16)
- # clojure-nl (6)
- # clojure-spec (24)
- # clojure-uk (39)
- # clojurescript (35)
- # community-development (49)
- # core-async (3)
- # cursive (31)
- # data-science (17)
- # datomic (21)
- # emacs (5)
- # fulcro (92)
- # graphql (1)
- # jobs (2)
- # lambdaisland (1)
- # leiningen (19)
- # luminus (9)
- # off-topic (21)
- # parinfer (6)
- # pedestal (1)
- # portkey (2)
- # re-frame (12)
- # reagent (8)
- # reitit (4)
- # shadow-cljs (117)
- # spacemacs (5)
- # specter (4)
- # sql (2)
- # testing (2)
- # tools-deps (3)
- # vim (1)
I just released hcloud
, an API client for the Hetzner Cloud API.
Quick context, what is Hetzner? It’s basically DigitalOcean but cheaper and a German company. I’m not sponsored by them but have hosted all my past projects there and was quite happy - and guess what, there wasn’t a Clojure client for their API yet.
Side note: I also did some toying around with metadata to auto-generate docs which are included in the README.md
. Probably not that impressive but I thought it was quite neat. Check out dev/readme.clj
for the code.
https://github.com/olieidel/hcloud
your lib is comparable to hetzners terraform provider?
You can replace :headers {"Authorization" (str "Bearer " token)}
in http-opts with :oauth-token token
.
@jerger_at_dda yeah I suppose it’s comparable, only completely in Clojure. so if you want to “roll your own” creation / management of hetzner servers in Clojure, this is for you 😄
@U66G3SGP5 wow, that’s a great find, I didn’t know that was equivalent. thanks for looking through the code btw! will change. relevant source of clj-http
for those interested: https://github.com/dakrone/clj-http/blob/eee52198d7776e3e6d965fbade9296918efc8cca/src/clj_http/client.clj#L846
Hehe I spent a lot of time looking that source, since I've been making a lot of clients and my own rest client library
hehe, I have a feeling that your clients are more well-designed than mine - I don’t have much experience writing them in Clojure
Not really, your client looks fine and clean. Not to toot my own horn, but here's my lib for generating request maps: https://github.com/RokLenarcic/clj-rest-client
I am happy to get any feedback
@jerger_at_dda yeah I suppose it’s comparable, only completely in Clojure. so if you want to “roll your own” creation / management of hetzner servers in Clojure, this is for you 😄