Get a complete, up-to-date overview of various configuration options for the hcloud-go API
The hcloud-go package developed by Hetzner provides a simple golang API to interact with Hetzner projects. However, no listings of the supported configuration options are available in their documentation. Developers are thus required to request this information themselves whenever needed. This is an annoyance that is trivial to solve, but it's stupid to make people solve these problems multiple times. So I decided to put this little repo together for anyone who has use for it.
NOTE: if you find that the json files in this repo have become outdated, ping me and I'll update the files as soon as possible. Or you can just fork the repo, and run the update yourself. Hopefully it's helpful! If not (yet), any contributions are welcome.
Just view the json files directly here on Github, or in any text editor.
Currently included config options
- images
- locations
- datacenters
- servertypes
Run a local build, and customize as needed.
- Clone this git repo to a local directory
- Provide the API token for a valid Hetzner project in main.go
- Feel free to customize the code to fit your needs (PRs welcome)
cd
into the working directory, then rungo run main.go
- The json files under
pwd/opts/
should now be updated