github.com/gophercloud/gophercloud@v1.11.0/openstack/db/v1/configurations/urls.go (about) 1 package configurations 2 3 import "github.com/gophercloud/gophercloud" 4 5 func baseURL(c *gophercloud.ServiceClient) string { 6 return c.ServiceURL("configurations") 7 } 8 9 func resourceURL(c *gophercloud.ServiceClient, configID string) string { 10 return c.ServiceURL("configurations", configID) 11 } 12 13 func instancesURL(c *gophercloud.ServiceClient, configID string) string { 14 return c.ServiceURL("configurations", configID, "instances") 15 } 16 17 func listDSParamsURL(c *gophercloud.ServiceClient, datastoreID, versionID string) string { 18 return c.ServiceURL("datastores", datastoreID, "versions", versionID, "parameters") 19 } 20 21 func getDSParamURL(c *gophercloud.ServiceClient, datastoreID, versionID, paramID string) string { 22 return c.ServiceURL("datastores", datastoreID, "versions", versionID, "parameters", paramID) 23 } 24 25 func listGlobalParamsURL(c *gophercloud.ServiceClient, versionID string) string { 26 return c.ServiceURL("datastores", "versions", versionID, "parameters") 27 } 28 29 func getGlobalParamURL(c *gophercloud.ServiceClient, versionID, paramID string) string { 30 return c.ServiceURL("datastores", "versions", versionID, "parameters", paramID) 31 }