blob: 0d39ca4fc60135b527cd5d6577c165272f628e9d [file] [log] [blame]
jrperrittc5c590a2016-11-04 14:41:15 -05001package members
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
jrperrittc5c590a2016-11-04 14:41:15 -05004
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}