• Stars
    star
    362
  • Rank 117,671 (Top 3 %)
  • Language
    Go
  • License
    MIT License
  • Created almost 7 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Go library for the Hetzner Cloud API

hcloud: A Go library for the Hetzner Cloud API

GitHub Actions status GoDoc

Package hcloud is a library for the Hetzner Cloud API.

The libraryโ€™s documentation is available at GoDoc, the public API documentation is available at docs.hetzner.cloud.

Example

package main

import (
    "context"
    "fmt"
    "log"

    "github.com/hetznercloud/hcloud-go/hcloud"
)

func main() {
    client := hcloud.NewClient(hcloud.WithToken("token"))

    server, _, err := client.Server.GetByID(context.Background(), 1)
    if err != nil {
        log.Fatalf("error retrieving server: %s\n", err)
    }
    if server != nil {
        fmt.Printf("server 1 is called %q\n", server.Name)
    } else {
        fmt.Println("server 1 not found")
    }
}

Go Version Support

The library supports the latest two Go minor versions, e.g. at the time Go 1.19 is released, it supports Go 1.18 and 1.19.

This matches the official Go Release Policy.

When the minimum required Go version is changed, it is announced in the release notes for that version.

License

MIT license

More Repositories

1

cli

A command-line interface for Hetzner Cloud
Go
1,052
star
2

awesome-hcloud

A curated list of awesome libraries, tools, and integrations for Hetzner Cloud
926
star
3

hcloud-cloud-controller-manager

Kubernetes cloud-controller-manager for Hetzner Cloud
Go
690
star
4

csi-driver

Kubernetes Container Storage Interface driver for Hetzner Cloud Volumes
Go
611
star
5

terraform-provider-hcloud

Terraform Hetzner Cloud provider
Go
484
star
6

hcloud-python

A Python library for the Hetzner Cloud API
Python
262
star
7

apps

Hetzner Cloud Apps
Ruby
114
star
8

packer-plugin-hcloud

Packer plugin for Hetzner Cloud Builder
Go
22
star
9

kubecon-europe-2021

This repository is part of a live demo at KubeCon Europe 2021 that shows how different official integrations can be used to deploy a Kubernetes (k3s) cluster at Hetzner Cloud.
Jinja
19
star
10

hc-utils

A set of tools for the Hetzner Cloud platform
Shell
17
star
11

protractor-test-helper

Helper functions to make e2e testing with protractor more fun
TypeScript
15
star
12

ceph-s3-box

Containerized Ceph and Radosgw Playground
Shell
14
star
13

setup-hcloud

GitHub action to install the Hetzner Cloud CLI.
TypeScript
13
star
14

kubecon-europe-2022

This repository is part of a live demo at KubeCon Europe 2022 that shows how different official integrations can be used to deploy a Kubernetes (k3s) cluster at Hetzner Cloud.
Jinja
10
star
15

ngx-translate-mock

TypeScript
9
star
16

kubernetes-dev-env

Kubernetes development environment for our Integrations.
HCL
6
star
17

ansible-role-aptly

Ansible Role - Install and configure Aptly
Python
5
star
18

ansible-role-ipxe-ca

Ansible Role - Cross-Sign all Root CAs for iPXE
Python
5
star
19

cilium-tests

4
star
20

bnxt_en_xdp_redirect_reproducer

Simple reproducer for an eBPF XDP redirect issue we observe with BroadCom NetExtreme NICs (bnxt_en driver).
C
4
star
21

helm-charts

Helm Chart Repository for Hetzner Cloud projects
3
star
22

ngx-prepare-test-environment

TypeScript
3
star
23

fleeting-plugin-hetzner

Mirror of https://gitlab.com/hetznercloud/fleeting-plugin-hetzner
Go
1
star
24

tps-action

Github Action to setup a temporary Hetzner Cloud Token
Shell
1
star