github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/imageservice/v2/members/urls.go (about) 1 package members 2 3 import "github.com/huaweicloud/golangsdk" 4 5 func imageMembersURL(c *golangsdk.ServiceClient, imageID string) string { 6 return c.ServiceURL("images", imageID, "members") 7 } 8 9 func listMembersURL(c *golangsdk.ServiceClient, imageID string) string { 10 return imageMembersURL(c, imageID) 11 } 12 13 func createMemberURL(c *golangsdk.ServiceClient, imageID string) string { 14 return imageMembersURL(c, imageID) 15 } 16 17 func imageMemberURL(c *golangsdk.ServiceClient, imageID string, memberID string) string { 18 return c.ServiceURL("images", imageID, "members", memberID) 19 } 20 21 func getMemberURL(c *golangsdk.ServiceClient, imageID string, memberID string) string { 22 return imageMemberURL(c, imageID, memberID) 23 } 24 25 func updateMemberURL(c *golangsdk.ServiceClient, imageID string, memberID string) string { 26 return imageMemberURL(c, imageID, memberID) 27 } 28 29 func deleteMemberURL(c *golangsdk.ServiceClient, imageID string, memberID string) string { 30 return imageMemberURL(c, imageID, memberID) 31 }