github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/mrs/v1/cluster/urls.go (about)

     1  package cluster
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func createURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("run-job-flow")
     7  }
     8  
     9  func deleteURL(c *golangsdk.ServiceClient, id string) string {
    10  	return c.ServiceURL("clusters", id)
    11  }
    12  
    13  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    14  	return c.ServiceURL("cluster_infos", id)
    15  }
    16  
    17  // listHostsURL /v1.1/{project_id}/clusters/{cluster_id}/hosts
    18  func listHostsURL(c *golangsdk.ServiceClient, clusterId string) string {
    19  	return c.ServiceURL("clusters", clusterId, "hosts")
    20  }