nl2go / hrobot-go

A Go library for the Hetzner Robot API https://robot.your-server.de/doc/webservice/en.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hrobot-go: A Go library for the Hetzner Robot Webservice

Build Coverage

Package hrobot-go is a library for the Hetzner Robot Webservice.

The library’s documentation is available at GoDoc, the public API documentation is available at robot.your-server.de.

Example

package main

import (
    "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)
}

About

A Go library for the Hetzner Robot API https://robot.your-server.de/doc/webservice/en.html

License:MIT License


Languages

Language:Go 99.6%Language:Makefile 0.4%