https://github.com/pepabo/golipop
🦍 A Lolipop! Managed Cloud API client library for Go
https://github.com/pepabo/golipop
client cloud go golang lolipop
Last synced: about 1 month ago
JSON representation
🦍 A Lolipop! Managed Cloud API client library for Go
- Host: GitHub
- URL: https://github.com/pepabo/golipop
- Owner: pepabo
- License: mit
- Created: 2017-10-26T02:45:35.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T08:37:35.000Z (over 5 years ago)
- Last Synced: 2025-04-15T03:04:23.316Z (about 1 month ago)
- Topics: client, cloud, go, golang, lolipop
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 11
- Watchers: 25
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
lolp: A Lolipop! Managed Cloud API client library for Go
[][travis]
[][release]
[][license]
[][godocs][travis]: https://travis-ci.org/pepabo/golipop
[release]: https://github.com/pepabo/golipop/releases
[license]: https://github.com/pepabo/golipop/blob/master/LICENSE
[godocs]: http://godoc.org/github.com/pepabo/golipopInstallation
------------To install, use `go get`:
```sh
$ go get -d github.com/pepabo/golipop
```Usage
-----As CLI:
```sh
$ eval $(lolp login -u -p )
$ lolp project create -k rails -s foobar -d password:
foobar.lolipop.io
$ lolp project foobar
ID "cdd32ae5-c118-4fc9-b9d6-ea5ad18f3737"
Kind "rails"
Domain "foobar.lolipop.io"
...
```As library:
```go
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)
}
```Contribution
------------1. Fork ([https://github.com/pepabo/golipop/fork](https://github.com/pepabo/golipop/fork))
1. Create a feature branch
1. Commit your changes
1. Rebase your local changes against the master branch
1. Run test suite with the `go test ./...` command and confirm that it passes
1. Run `gofmt -s`
1. Create a new Pull RequestAuthor
------[linyows](https://github.com/linyows)