refactor: make proxy use weave/api
and extend that api as required, namely with DNSDomain()
This commit is contained in:
1 parent
34ab86124b
commit
feee4f0494
2 files changed
+9
-15
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user