jrperritt | c5c590a | 2016-11-04 14:41:15 -0500 | [diff] [blame] | 1 | package members |
| 2 | |
| 3 | import "github.com/gophercloud/gophercloud" |
| 4 | |
| 5 | func imageMembersURL(c *gophercloud.ServiceClient, imageID string) string { |
| 6 | return c.ServiceURL("images", imageID, "members") |
| 7 | } |
| 8 | |
| 9 | func listMembersURL(c *gophercloud.ServiceClient, imageID string) string { |
| 10 | return imageMembersURL(c, imageID) |
| 11 | } |
| 12 | |
| 13 | func createMemberURL(c *gophercloud.ServiceClient, imageID string) string { |
| 14 | return imageMembersURL(c, imageID) |
| 15 | } |
| 16 | |
| 17 | func imageMemberURL(c *gophercloud.ServiceClient, imageID string, memberID string) string { |
| 18 | return c.ServiceURL("images", imageID, "members", memberID) |
| 19 | } |
| 20 | |
| 21 | func getMemberURL(c *gophercloud.ServiceClient, imageID string, memberID string) string { |
| 22 | return imageMemberURL(c, imageID, memberID) |
| 23 | } |
| 24 | |
| 25 | func updateMemberURL(c *gophercloud.ServiceClient, imageID string, memberID string) string { |
| 26 | return imageMemberURL(c, imageID, memberID) |
| 27 | } |
| 28 | |
| 29 | func deleteMemberURL(c *gophercloud.ServiceClient, imageID string, memberID string) string { |
| 30 | return imageMemberURL(c, imageID, memberID) |
| 31 | } |