github.com/gophercloud/gophercloud@v1.11.0/openstack/compute/v2/extensions/remoteconsoles/urls.go (about) 1 package remoteconsoles 2 3 import "github.com/gophercloud/gophercloud" 4 5 const ( 6 rootPath = "servers" 7 8 resourcePath = "remote-consoles" 9 ) 10 11 func rootURL(c *gophercloud.ServiceClient, serverID string) string { 12 return c.ServiceURL(rootPath, serverID, resourcePath) 13 } 14 15 func createURL(c *gophercloud.ServiceClient, serverID string) string { 16 return rootURL(c, serverID) 17 }