Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nl2go/hrobot-go
A Go library for the Hetzner Robot API https://robot.your-server.de/doc/webservice/en.html
https://github.com/nl2go/hrobot-go
go golang hetzner hetzner-robot-api
Last synced: 3 months ago
JSON representation
A Go library for the Hetzner Robot API https://robot.your-server.de/doc/webservice/en.html
- Host: GitHub
- URL: https://github.com/nl2go/hrobot-go
- Owner: nl2go
- License: mit
- Created: 2019-11-18T07:56:34.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-11-07T14:45:09.000Z (over 1 year ago)
- Last Synced: 2024-08-03T23:29:46.961Z (6 months ago)
- Topics: go, golang, hetzner, hetzner-robot-api
- Language: Go
- Size: 22.5 KB
- Stars: 17
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - hrobot-go - server.de/doc/webservice/en.html (Repositories)
README
# hrobot-go: A Go library for the Hetzner Robot Webservice
![Build](https://gitlab.com/newsletter2go/hrobot-go/badges/master/pipeline.svg) ![Coverage](https://gitlab.com/newsletter2go/hrobot-go/badges/master/coverage.svg)
Package hrobot-go is a library for the Hetzner Robot Webservice.
The library’s documentation is available at [GoDoc](https://godoc.org/github.com/nl2go/hrobot-go),
the public API documentation is available at [robot.your-server.de](https://robot.your-server.de/doc/webservice/en.html).## Example
```go
package mainimport (
"fmt"
"log"client "github.com/nl2go/hrobot-go"
)func main() {
robotClient := client.NewBasicAuthClient("user", "pass")servers, err := robotClient.ServerGetList()
if err != nil {
log.Fatalf("error while retrieving server list: %s\n", err)
}fmt.Println(servers)
}
```