github.com/gophercloud/gophercloud@v1.11.0/openstack/sharedfilesystems/v2/replicas/urls.go (about) 1 package replicas 2 3 import "github.com/gophercloud/gophercloud" 4 5 func createURL(c *gophercloud.ServiceClient) string { 6 return c.ServiceURL("share-replicas") 7 } 8 9 func listURL(c *gophercloud.ServiceClient) string { 10 return c.ServiceURL("share-replicas") 11 } 12 13 func listDetailURL(c *gophercloud.ServiceClient) string { 14 return c.ServiceURL("share-replicas", "detail") 15 } 16 17 func deleteURL(c *gophercloud.ServiceClient, id string) string { 18 return c.ServiceURL("share-replicas", id) 19 } 20 21 func getURL(c *gophercloud.ServiceClient, id string) string { 22 return c.ServiceURL("share-replicas", id) 23 } 24 25 func listExportLocationsURL(c *gophercloud.ServiceClient, id string) string { 26 return c.ServiceURL("share-replicas", id, "export-locations") 27 } 28 29 func getExportLocationURL(c *gophercloud.ServiceClient, replicaID, id string) string { 30 return c.ServiceURL("share-replicas", replicaID, "export-locations", id) 31 } 32 33 func actionURL(c *gophercloud.ServiceClient, id string) string { 34 return c.ServiceURL("share-replicas", id, "action") 35 }