Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/relrod/digitalocean
A Haskell library for working with the DigitalOcean API. Probably horrible.
https://github.com/relrod/digitalocean
Last synced: 12 days ago
JSON representation
A Haskell library for working with the DigitalOcean API. Probably horrible.
- Host: GitHub
- URL: https://github.com/relrod/digitalocean
- Owner: relrod
- License: bsd-3-clause
- Created: 2013-08-19T18:47:27.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-09T17:34:16.000Z (almost 10 years ago)
- Last Synced: 2024-10-04T16:20:18.165Z (about 1 month ago)
- Language: Haskell
- Size: 238 KB
- Stars: 6
- Watchers: 5
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# digitalocean
[![Build Status](https://travis-ci.org/relrod/digitalocean.svg?branch=master)](https://travis-ci.org/CodeBlock/digitalocean)
A Haskell library for working with the DigitalOcean API.
Released under the 3-clause BSD license.
Implements:
- GET '/droplets'
- GET '/droplets/new'
- GET '/regions'
- GET '/sizes'
- GET '/images'
- GET '/ssh_keys'## Using
```haskell
let a = Authentication "redacted" "redacted"
x <- droplets aliftM (map ipAddress . rDroplets) x
-- Just ["198.211.109.123","192.241.204.123"]fmap (map name . rDroplets) x
-- Just ["myserver01.example.com","myserver02.example.com"]
```## Command Line App
For faster performance, set an alias in your shell profile:
```
alias digitalocean-st='digitalocean-status status +RTS -N4'
```