Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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 a

liftM (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'
```