blob: 4d48caa330e48c8fa791e7bfe9b54c55e012a769 [file] [log] [blame]
Ash Wilson0482daf2014-10-22 11:24:40 -04001package keypairs
2
Krzysztof Szukiełojć3f41d082017-05-07 14:43:06 +02003import "gerrit.mcp.mirantis.net/debian/gophercloud.git"
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}