github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/db/v1/datastores/urls.go (about) 1 package datastores 2 3 import "github.com/huaweicloud/golangsdk" 4 5 func baseURL(c *golangsdk.ServiceClient) string { 6 return c.ServiceURL("datastores") 7 } 8 9 func resourceURL(c *golangsdk.ServiceClient, dsID string) string { 10 return c.ServiceURL("datastores", dsID) 11 } 12 13 func versionsURL(c *golangsdk.ServiceClient, dsID string) string { 14 return c.ServiceURL("datastores", dsID, "versions") 15 } 16 17 func versionURL(c *golangsdk.ServiceClient, dsID, versionID string) string { 18 return c.ServiceURL("datastores", dsID, "versions", versionID) 19 }