Jon Perritt | e7b86d1 | 2015-01-16 20:37:11 -0700 | [diff] [blame] | 1 | package services |
| 2 | |
Jon Perritt | 27249f4 | 2016-02-18 10:35:59 -0600 | [diff] [blame] | 3 | import "github.com/gophercloud/gophercloud" |
Jon Perritt | e7b86d1 | 2015-01-16 20:37:11 -0700 | [diff] [blame] | 4 | |
| 5 | func listURL(c *gophercloud.ServiceClient) string { |
| 6 | return c.ServiceURL("services") |
| 7 | } |
| 8 | |
| 9 | func createURL(c *gophercloud.ServiceClient) string { |
| 10 | return listURL(c) |
| 11 | } |
| 12 | |
| 13 | func getURL(c *gophercloud.ServiceClient, id string) string { |
| 14 | return c.ServiceURL("services", id) |
| 15 | } |
| 16 | |
| 17 | func updateURL(c *gophercloud.ServiceClient, id string) string { |
| 18 | return getURL(c, id) |
| 19 | } |
| 20 | |
| 21 | func deleteURL(c *gophercloud.ServiceClient, id string) string { |
| 22 | return getURL(c, id) |
| 23 | } |