forked from gophercloud/gophercloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.go
31 lines (23 loc) · 836 Bytes
/
urls.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package sharenetworks
import "github.com/gophercloud/gophercloud"
func createURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("share-networks")
}
func deleteURL(c *gophercloud.ServiceClient, id string) string {
return c.ServiceURL("share-networks", id)
}
func listDetailURL(c *gophercloud.ServiceClient) string {
return c.ServiceURL("share-networks", "detail")
}
func getURL(c *gophercloud.ServiceClient, id string) string {
return deleteURL(c, id)
}
func updateURL(c *gophercloud.ServiceClient, id string) string {
return deleteURL(c, id)
}
func addSecurityServiceURL(c *gophercloud.ServiceClient, id string) string {
return c.ServiceURL("share-networks", id, "action")
}
func removeSecurityServiceURL(c *gophercloud.ServiceClient, id string) string {
return c.ServiceURL("share-networks", id, "action")
}