github.com/vnpaycloud-console/gophercloud/v2@v2.0.5/openstack/compute/v2/remoteconsoles/urls.go (about) 1 package remoteconsoles 2 3 import "github.com/vnpaycloud-console/gophercloud/v2" 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 }