github.com/gophercloud/gophercloud@v1.11.0/openstack/imageservice/v2/imageimport/urls.go (about) 1 package imageimport 2 3 import "github.com/gophercloud/gophercloud" 4 5 const ( 6 rootPath = "images" 7 infoPath = "info" 8 resourcePath = "import" 9 ) 10 11 func infoURL(c *gophercloud.ServiceClient) string { 12 return c.ServiceURL(infoPath, resourcePath) 13 } 14 15 func importURL(c *gophercloud.ServiceClient, imageID string) string { 16 return c.ServiceURL(rootPath, imageID, resourcePath) 17 }