github.com/gophercloud/gophercloud@v1.11.0/openstack/sharedfilesystems/v2/shares/urls.go (about) 1 package shares 2 3 import "github.com/gophercloud/gophercloud" 4 5 func createURL(c *gophercloud.ServiceClient) string { 6 return c.ServiceURL("shares") 7 } 8 9 func listDetailURL(c *gophercloud.ServiceClient) string { 10 return c.ServiceURL("shares", "detail") 11 } 12 13 func deleteURL(c *gophercloud.ServiceClient, id string) string { 14 return c.ServiceURL("shares", id) 15 } 16 17 func getURL(c *gophercloud.ServiceClient, id string) string { 18 return c.ServiceURL("shares", id) 19 } 20 21 func updateURL(c *gophercloud.ServiceClient, id string) string { 22 return c.ServiceURL("shares", id) 23 } 24 25 func listExportLocationsURL(c *gophercloud.ServiceClient, id string) string { 26 return c.ServiceURL("shares", id, "export_locations") 27 } 28 29 func getExportLocationURL(c *gophercloud.ServiceClient, shareID, id string) string { 30 return c.ServiceURL("shares", shareID, "export_locations", id) 31 } 32 33 func grantAccessURL(c *gophercloud.ServiceClient, id string) string { 34 return c.ServiceURL("shares", id, "action") 35 } 36 37 func revokeAccessURL(c *gophercloud.ServiceClient, id string) string { 38 return c.ServiceURL("shares", id, "action") 39 } 40 41 func listAccessRightsURL(c *gophercloud.ServiceClient, id string) string { 42 return c.ServiceURL("shares", id, "action") 43 } 44 45 func extendURL(c *gophercloud.ServiceClient, id string) string { 46 return c.ServiceURL("shares", id, "action") 47 } 48 49 func shrinkURL(c *gophercloud.ServiceClient, id string) string { 50 return c.ServiceURL("shares", id, "action") 51 } 52 53 func revertURL(c *gophercloud.ServiceClient, id string) string { 54 return c.ServiceURL("shares", id, "action") 55 } 56 57 func resetStatusURL(c *gophercloud.ServiceClient, id string) string { 58 return c.ServiceURL("shares", id, "action") 59 } 60 61 func forceDeleteURL(c *gophercloud.ServiceClient, id string) string { 62 return c.ServiceURL("shares", id, "action") 63 } 64 65 func unmanageURL(c *gophercloud.ServiceClient, id string) string { 66 return c.ServiceURL("shares", id, "action") 67 } 68 69 func getMetadataURL(c *gophercloud.ServiceClient, id string) string { 70 return c.ServiceURL("shares", id, "metadata") 71 } 72 73 func getMetadatumURL(c *gophercloud.ServiceClient, id, key string) string { 74 return c.ServiceURL("shares", id, "metadata", key) 75 } 76 77 func setMetadataURL(c *gophercloud.ServiceClient, id string) string { 78 return c.ServiceURL("shares", id, "metadata") 79 } 80 81 func updateMetadataURL(c *gophercloud.ServiceClient, id string) string { 82 return c.ServiceURL("shares", id, "metadata") 83 } 84 85 func deleteMetadatumURL(c *gophercloud.ServiceClient, id, key string) string { 86 return c.ServiceURL("shares", id, "metadata", key) 87 }