Jamie Hannaford | 5b7acc1 | 2015-02-13 09:14:25 +0100 | [diff] [blame] | 1 | package flavors |
| 2 | |
| 3 | import ( |
Jamie Hannaford | 05d200d | 2015-02-20 14:49:05 +0100 | [diff] [blame] | 4 | "strconv" |
| 5 | |
Jamie Hannaford | 5b7acc1 | 2015-02-13 09:14:25 +0100 | [diff] [blame] | 6 | "github.com/rackspace/gophercloud" |
| 7 | ) |
| 8 | |
Jamie Hannaford | 05d200d | 2015-02-20 14:49:05 +0100 | [diff] [blame] | 9 | func getURL(client *gophercloud.ServiceClient, id int) string { |
| 10 | return client.ServiceURL("flavors", strconv.Itoa(id)) |
Jamie Hannaford | 5b7acc1 | 2015-02-13 09:14:25 +0100 | [diff] [blame] | 11 | } |
| 12 | |
| 13 | func listURL(client *gophercloud.ServiceClient) string { |
| 14 | return client.ServiceURL("flavors") |
| 15 | } |