github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/sfs/v2/shares/urls.go (about) 1 package shares 2 3 import "github.com/huaweicloud/golangsdk" 4 5 //For access rule create , update and delete 6 func rootURL(c *golangsdk.ServiceClient, id string) string { 7 return c.ServiceURL("shares", id, "action") 8 } 9 10 // To fetch mount locations of the specified share id 11 func getMountLocationsURL(c *golangsdk.ServiceClient, id string) string { 12 return c.ServiceURL("shares", id, "export_locations") 13 } 14 15 func createURL(c *golangsdk.ServiceClient) string { 16 return c.ServiceURL("shares") 17 } 18 19 func resourceURL(c *golangsdk.ServiceClient, id string) string { 20 return c.ServiceURL("shares", id) 21 } 22 23 //For access rule create , update and delete 24 func listURL(c *golangsdk.ServiceClient) string { 25 return c.ServiceURL("shares", "detail") 26 } 27 28 func grantAccessURL(c *golangsdk.ServiceClient, id string) string { 29 return c.ServiceURL("shares", id, "action") 30 }