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