github.com/vnpaycloud-console/gophercloud/v2@v2.0.5/openstack/dns/v2/zones/urls.go (about)

     1  package zones
     2  
     3  import "github.com/vnpaycloud-console/gophercloud/v2"
     4  
     5  // baseURL returns the base URL for zones.
     6  func baseURL(c *gophercloud.ServiceClient) string {
     7  	return c.ServiceURL("zones")
     8  }
     9  
    10  // zoneURL returns the URL for a specific zone.
    11  func zoneURL(c *gophercloud.ServiceClient, zoneID string) string {
    12  	return c.ServiceURL("zones", zoneID)
    13  }
    14  
    15  // zoneShareURL returns the URL for sharing a zone.
    16  func zoneShareURL(c *gophercloud.ServiceClient, zoneID string) string {
    17  	return c.ServiceURL("zones", zoneID, "shares")
    18  }
    19  
    20  // zoneUnshareURL returns the URL for unsharing a zone.
    21  func zoneUnshareURL(c *gophercloud.ServiceClient, zoneID, shareID string) string {
    22  	return c.ServiceURL("zones", zoneID, "shares", shareID)
    23  }