pepabo / golipop

🦍 A Lolipop! Managed Cloud API client library for Go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lolp

lolp: A Lolipop! Managed Cloud API client library for Go



Travis GitHub release MIT License Go Documentation

Installation

To install, use go get:

$ go get -d github.com/pepabo/golipop

Usage

As CLI:

$ eval $(lolp login -u <your@example.com> -p <your_password>)
$ lolp project create -k rails -s foobar -d password:<your_password>
foobar.lolipop.io
$ lolp project foobar
ID                 "cdd32ae5-c118-4fc9-b9d6-ea5ad18f3737"
Kind               "rails"
Domain             "foobar.lolipop.io"
...

As library:

client := lolp.DefaultClinet()
token, err := client.Login("your@example.com", "your_password")
if err != nil {
  panic(err)
}
p := &ProjectNew{
  Kind: "rails",
  Database: map[string]interface{} {"password": "********"},
}
project, err := client.CreateProject(p)
if err != nil {
  panic(err)
}

Contribution

  1. Fork (https://github.com/pepabo/golipop/fork)
  2. Create a feature branch
  3. Commit your changes
  4. Rebase your local changes against the master branch
  5. Run test suite with the go test ./... command and confirm that it passes
  6. Run gofmt -s
  7. Create a new Pull Request

Author

linyows

About

🦍 A Lolipop! Managed Cloud API client library for Go

License:MIT License


Languages

Language:Go 96.8%Language:Makefile 3.2%