github.com/gophercloud/gophercloud@v1.11.0/openstack/containerinfra/v1/certificates/urls.go (about)

     1  package certificates
     2  
     3  import (
     4  	"github.com/gophercloud/gophercloud"
     5  )
     6  
     7  var apiName = "certificates"
     8  
     9  func commonURL(client *gophercloud.ServiceClient) string {
    10  	return client.ServiceURL(apiName)
    11  }
    12  
    13  func getURL(client *gophercloud.ServiceClient, id string) string {
    14  	return client.ServiceURL(apiName, id)
    15  }
    16  
    17  func createURL(client *gophercloud.ServiceClient) string {
    18  	return commonURL(client)
    19  }
    20  
    21  func updateURL(client *gophercloud.ServiceClient, id string) string {
    22  	return client.ServiceURL(apiName, id)
    23  }