Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aybabtme/godotto
Among other things, a DigitalOcean REPL
https://github.com/aybabtme/godotto
Last synced: about 1 month ago
JSON representation
Among other things, a DigitalOcean REPL
- Host: GitHub
- URL: https://github.com/aybabtme/godotto
- Owner: aybabtme
- License: apache-2.0
- Created: 2016-04-11T04:42:01.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-12T08:31:06.000Z (over 6 years ago)
- Last Synced: 2024-06-20T12:07:15.477Z (5 months ago)
- Language: Go
- Homepage:
- Size: 6.88 MB
- Stars: 9
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# godotto
Exposes `digitalocean/godo` in a `robertkrimen/otto` javascript VM.
## repl
A DigitalOcean repl!
```javascript
> cloud.droplets.list();
[]
> cloud.droplets.create({"name":"lol","image":{"slug":"debian-8-x64"},"region":"nyc3","size":"1gb"});
{
"created_at": "2016-04-11T05:39:19Z",
"disk": 30,
"id": 13190234,
"name": "lol",
...
}
> var d = cloud.droplets.get(droplets[0].id);
> d.status;
"active"
> cloud.droplets.delete(d);
> cloud.droplets.list();
[]
```Or use the REPL as a runtime:
```javascript
#!/usr/bin/env doreplvar acc = cloud.accounts.get();
console.log("hello I am " + acc.email);
var keys = cloud.keys.list();
_.each(keys, function(k) {
console.log("i have key! "+ k.name)
});var regions = cloud.regions.list();
console.log("this cloud has " + regions.length + " regions!");
_.each(regions, function(r) {
console.log("droplets in "+ r.name)
});
```## installation
Automated CI status:
- Linux: [![Build Status](https://travis-ci.org/aybabtme/godotto.svg?branch=master)](https://travis-ci.org/aybabtme/godotto)
- Windows: [![Build status](https://ci.appveyor.com/api/projects/status/7v6iq8fs8rdq3ua2/branch/master?svg=true)](https://ci.appveyor.com/project/aybabtme/godotto/branch/master)### linux
On debian and children:
```bash
wget https://github.com/aybabtme/godotto/releases/download/0.5.1/dorepl_Linux_x86_64.deb
sudo dpkg -i dorepl_Linux_x86_64.deb
```Or pull the binary directly:
```bash
wget -qO- https://github.com/aybabtme/godotto/releases/download/0.5.1/dorepl_Linux_x86_64.tar.gz | tar xvz
```### darwin
```bash
brew tap aybabtme/homebrew-tap
brew install dorepl
```### windows (not tested, ymmv)
unzip this file somewhere, i guess!
```bash
https://github.com/aybabtme/godotto/releases/download/0.5.1/dorepl_Windows_x86_64.zip
```## not implemented
* `Droplet`: everything is missing except the CRUD
* `Droplet Actions`
* `Image Actions`
* `Floating IP Actions`
* `Tags`## license
Apache 2