mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-12 20:20:52 +08:00
add delete and push dns subcommands
This commit is contained in:
@@ -26,3 +26,11 @@ func GetNetworkDNS(networkName string) *[]models.DNSEntry {
|
||||
func CreateDNS(networkName string, payload *models.DNSEntry) *models.DNSEntry {
|
||||
return request[models.DNSEntry](http.MethodPost, "/api/dns/"+networkName, payload)
|
||||
}
|
||||
|
||||
func PushDNS() *string {
|
||||
return request[string](http.MethodPost, "/api/dns/adm/pushdns", nil)
|
||||
}
|
||||
|
||||
func DeleteDNS(networkName, domainName string) *string {
|
||||
return request[string](http.MethodDelete, fmt.Sprintf("/api/dns/%s/%s", networkName, domainName), nil)
|
||||
}
|
||||
|
Reference in New Issue
Block a user