Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-01-24T08:37:35.000Z (almost 5 years ago)
- Last Synced: 2024-06-20T22:45:16.158Z (7 months ago)
- Topics: client, cloud, go, golang, lolipop
- Language: Go
- Homepage:
- Size: 71.3 KB
- Stars: 11
- Watchers: 26
- 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](https://img.shields.io/travis/pepabo/golipop.svg?style=flat-square)][travis]
[![GitHub release](http://img.shields.io/github/release/pepabo/golipop.svg?style=flat-square)][release]
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)][license]
[![Go Documentation](http://img.shields.io/badge/go-documentation-blue.svg?style=flat-square)][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)