blob: fec38f36793f030bac628ac0761050038f36e457 [file] [log] [blame]
Ash Wilson0482daf2014-10-22 11:24:40 -04001package keypairs
2
Jon Perritt27249f42016-02-18 10:35:59 -06003import "github.com/gophercloud/gophercloud"
Ash Wilson0482daf2014-10-22 11:24:40 -04004
5const resourcePath = "os-keypairs"
6
7func resourceURL(c *gophercloud.ServiceClient) string {
8 return c.ServiceURL(resourcePath)
9}
10
11func listURL(c *gophercloud.ServiceClient) string {
12 return resourceURL(c)
13}
14
15func createURL(c *gophercloud.ServiceClient) string {
16 return resourceURL(c)
17}
18
19func getURL(c *gophercloud.ServiceClient, name string) string {
20 return c.ServiceURL(resourcePath, name)
21}
22
23func deleteURL(c *gophercloud.ServiceClient, name string) string {
24 return getURL(c, name)
25}