Library for working with Hetzner DNS API
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
Vladimir Smagin f768ffe03f Изменить 'types.go' il y a 2 mois
example prepare for tests il y a 5 mois
API_help.md readme il y a 5 mois
go.mod release 0.1 il y a 5 mois
go.sum release 0.1 il y a 5 mois
hcloud-dns.go prepare for tests il y a 5 mois
readme.md readme il y a 5 mois
records.go make adapter il y a 5 mois
types.go Изменить 'types.go' il y a 2 mois
types_complex.go Add zone validation il y a 5 mois
zones.go remove log il y a 5 mois

readme.md

Hetzner DNS golang library

I made this library to interact with Hetzner DNS API in most easy way. Hopefully in future it will be used for Hetzner external-dns provider. Check out example directory and API_help.md.

Get your own token on Hetzner DNS and place it to token variable and run code

token := "jcB2UywP9XtZGhvhSHpH5m"
zone := "vhSHpH5mjcB2UywP9XtZGh"

log.Println("Create new instance")
hdns := hclouddns.New(token)

log.Println("Get zone", zone)

allRecords, err := hdns.GetRecords(zone)
if err != nil {
	log.Fatalln(err)
}

log.Println(allRecords.Records)
log.Println(allRecords.Error)

At this moment library supports all API requests. If you found some bug mail me or register here and create issue.


Copyright by Vladimir Smagin (21h) 2020
http://blindage.org email: 21h@blindage.org
Project page: https://git.blindage.org/21h/hcloud-dns