github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/extensions/hypervisors/urls.go (about)

     1  package hypervisors
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func hypervisorsListDetailURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("os-hypervisors", "detail")
     7  }
     8  
     9  func hypervisorsStatisticsURL(c *golangsdk.ServiceClient) string {
    10  	return c.ServiceURL("os-hypervisors", "statistics")
    11  }
    12  
    13  func hypervisorsGetURL(c *golangsdk.ServiceClient, hypervisorID string) string {
    14  	return c.ServiceURL("os-hypervisors", hypervisorID)
    15  }
    16  
    17  func hypervisorsUptimeURL(c *golangsdk.ServiceClient, hypervisorID string) string {
    18  	return c.ServiceURL("os-hypervisors", hypervisorID, "uptime")
    19  }