refactor: make proxy use weave/api

and extend that api as required, namely with DNSDomain()
This commit is contained in:
Matthias Radestock committed 2016-02-02 20:45:30 +00:00
1 parent 34ab86124b
commit feee4f0494
2 files changed
+9 -15

No files matched your search

+4
View File
@@ -5,6 +5,10 @@ import (
"net/url"
)
func (client *Client) DNSDomain() (string, error) {
return client.httpVerb("GET", "/domain", nil)
}
func (client *Client) RegisterWithDNS(ID string, fqdn string, ip string) error {
data := url.Values{}
data.Add("fqdn", fqdn)