1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Files
stackexchange-dnscontrol/vendor/github.com/mittwald/go-powerdns/apis/servers/interface.go
Jan-Philipp Benecke ffd4e46dda New DNS provider PowerDNS (#748)
* Added PowerDNS as dns provider

* Remove unnecessary comments

* Some tests

* Implemented feedback
2020-05-30 09:54:07 -04:00

15 lines
480 B
Go

package servers
import "context"
// Client defines method for interacting with the PowerDNS "Servers" endpoints
type Client interface {
// ListServers lists all known servers
ListServers(ctx context.Context) ([]Server, error)
// GetServer returns a specific server. If the server with the given "serverID" does
// not exist, the error return value will contain a pdnshttp.ErrNotFound error (see example)
GetServer(ctx context.Context, serverID string) (*Server, error)
}