github.com/gophercloud/gophercloud@v1.11.0/openstack/keymanager/v1/containers/urls.go (about)

     1  package containers
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  func listURL(client *gophercloud.ServiceClient) string {
     6  	return client.ServiceURL("containers")
     7  }
     8  
     9  func getURL(client *gophercloud.ServiceClient, id string) string {
    10  	return client.ServiceURL("containers", id)
    11  }
    12  
    13  func createURL(client *gophercloud.ServiceClient) string {
    14  	return client.ServiceURL("containers")
    15  }
    16  
    17  func deleteURL(client *gophercloud.ServiceClient, id string) string {
    18  	return client.ServiceURL("containers", id)
    19  }
    20  
    21  func listConsumersURL(client *gophercloud.ServiceClient, id string) string {
    22  	return client.ServiceURL("containers", id, "consumers")
    23  }
    24  
    25  func createConsumerURL(client *gophercloud.ServiceClient, id string) string {
    26  	return client.ServiceURL("containers", id, "consumers")
    27  }
    28  
    29  func deleteConsumerURL(client *gophercloud.ServiceClient, id string) string {
    30  	return client.ServiceURL("containers", id, "consumers")
    31  }
    32  
    33  func createSecretRefURL(client *gophercloud.ServiceClient, id string) string {
    34  	return client.ServiceURL("containers", id, "secrets")
    35  }
    36  
    37  func deleteSecretRefURL(client *gophercloud.ServiceClient, id string) string {
    38  	return client.ServiceURL("containers", id, "secrets")
    39  }