| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | package functionsimport (	"fmt"	"net/http"	"github.com/gravitl/netmaker/models")// GetDNS - fetch all DNS entriesfunc GetDNS() *[]models.DNSEntry {	return request[[]models.DNSEntry](http.MethodGet, "/api/dns", nil)}// GetNodeDNS - fetch all Node DNS entiresfunc GetNodeDNS(networkName string) *[]models.DNSEntry {	return request[[]models.DNSEntry](http.MethodGet, fmt.Sprintf("/api/dns/adm/%s/nodes", networkName), nil)}// GetCustomDNS - fetch user defined DNS entrieesfunc GetCustomDNS(networkName string) *[]models.DNSEntry {	return request[[]models.DNSEntry](http.MethodGet, fmt.Sprintf("/api/dns/adm/%s/custom", networkName), nil)}// GetNetworkDNS - fetch DNS entries associated with a networkfunc GetNetworkDNS(networkName string) *[]models.DNSEntry {	return request[[]models.DNSEntry](http.MethodGet, "/api/dns/adm/"+networkName, nil)}// CreateDNS - create a DNS entryfunc CreateDNS(networkName string, payload *models.DNSEntry) *models.DNSEntry {	return request[models.DNSEntry](http.MethodPost, "/api/dns/"+networkName, payload)}// PushDNS - push a DNS entry to CoreDNSfunc PushDNS() *string {	return request[string](http.MethodPost, "/api/dns/adm/pushdns", nil)}// DeleteDNS - delete a DNS entryfunc DeleteDNS(networkName, domainName string) *string {	return request[string](http.MethodDelete, fmt.Sprintf("/api/dns/%s/%s", networkName, domainName), nil)}
 |