Glesys for libdns
This package implements the libdns interfaces for Glesys, allowing you to manage DNS records. It utilizes glesys-go for API communication.
include (
glesys "github.com/libdns/glesys"
)
p := &glesys.Provider{
Project: "your project/username usually clXXXXXX",
ApiKey: "api-key",
}
zone := "example.org"
records, err := p.GetRecords(ctx, zone)
For more examples check the _examples
folder in the source.
To do everything this library can do the Glesys API user needs permissions to the following...
- Domain.addrecord
- Domain.deleterecord
- Domain.listrecords
- Domain.updaterecord