lolp: A Lolipop! Managed Cloud API client library for Go
To install, use go get
:
$ go get -d github.com/pepabo/golipop
As CLI:
$ eval $(lolp login -u <[email protected]> -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("[email protected]", "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)
}
- Fork (https://github.com/pepabo/golipop/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request