github.com/gophercloud/gophercloud@v1.11.0/openstack/loadbalancer/v2/amphorae/urls.go (about)

     1  package amphorae
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  const (
     6  	rootPath     = "octavia"
     7  	resourcePath = "amphorae"
     8  	failoverPath = "failover"
     9  )
    10  
    11  func rootURL(c *gophercloud.ServiceClient) string {
    12  	return c.ServiceURL(rootPath, resourcePath)
    13  }
    14  
    15  func resourceURL(c *gophercloud.ServiceClient, id string) string {
    16  	return c.ServiceURL(rootPath, resourcePath, id)
    17  }
    18  
    19  func failoverRootURL(c *gophercloud.ServiceClient, id string) string {
    20  	return c.ServiceURL(rootPath, resourcePath, id, failoverPath)
    21  }