github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/blockstorage/v1/volumes/urls.go (about) 1 package volumes 2 3 import "github.com/huaweicloud/golangsdk" 4 5 func createURL(c *golangsdk.ServiceClient) string { 6 return c.ServiceURL("volumes") 7 } 8 9 func listURL(c *golangsdk.ServiceClient) string { 10 return createURL(c) 11 } 12 13 func deleteURL(c *golangsdk.ServiceClient, id string) string { 14 return c.ServiceURL("volumes", id) 15 } 16 17 func getURL(c *golangsdk.ServiceClient, id string) string { 18 return deleteURL(c, id) 19 } 20 21 func updateURL(c *golangsdk.ServiceClient, id string) string { 22 return deleteURL(c, id) 23 }