github.com/opentelekomcloud/gophertelekomcloud@v0.9.3/openstack/elb/v3/loadbalancers/urls.go (about)

     1  package loadbalancers
     2  
     3  import (
     4  	golangsdk "github.com/opentelekomcloud/gophertelekomcloud"
     5  )
     6  
     7  const (
     8  	resourcePath = "loadbalancers"
     9  	statusPath   = "statuses"
    10  )
    11  
    12  func rootURL(c *golangsdk.ServiceClient) string {
    13  	return c.ServiceURL(resourcePath)
    14  }
    15  
    16  func resourceURL(c *golangsdk.ServiceClient, id string) string {
    17  	return c.ServiceURL(resourcePath, id)
    18  }
    19  
    20  func statusURL(c *golangsdk.ServiceClient, id string) string {
    21  	return c.ServiceURL(resourcePath, id, statusPath)
    22  }