github.com/gophercloud/gophercloud@v1.11.0/openstack/container/v1/capsules/urls.go (about) 1 package capsules 2 3 import "github.com/gophercloud/gophercloud" 4 5 func getURL(client *gophercloud.ServiceClient, id string) string { 6 return client.ServiceURL("capsules", id) 7 } 8 9 func createURL(client *gophercloud.ServiceClient) string { 10 return client.ServiceURL("capsules") 11 } 12 13 // `listURL` is a pure function. `listURL(c)` is a URL for which a GET 14 // request will respond with a list of capsules in the service `c`. 15 func listURL(c *gophercloud.ServiceClient) string { 16 return c.ServiceURL("capsules") 17 } 18 19 func deleteURL(c *gophercloud.ServiceClient, id string) string { 20 return c.ServiceURL("capsules", id) 21 }