forked from huaweicloud/huaweicloud-sdk-go
/
urls.go
40 lines (29 loc) · 1.17 KB
/
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
32
33
34
35
36
37
38
39
package instances
import "github.com/gophercloud/gophercloud"
func createURL(sc *gophercloud.ServiceClient) string {
return sc.ServiceURL("instances")
}
func deleteURL(sc *gophercloud.ServiceClient, serverID string) string {
return sc.ServiceURL("instances", serverID)
}
func listURL(sc *gophercloud.ServiceClient) string {
return sc.ServiceURL("instances")
}
func restartURL(sc *gophercloud.ServiceClient, instancesId string) string {
return sc.ServiceURL("instances", instancesId, "action")
}
func singletohaURL(sc *gophercloud.ServiceClient, instancesId string) string {
return sc.ServiceURL("instances", instancesId, "action")
}
func resizeURL(sc *gophercloud.ServiceClient, instancesId string) string {
return sc.ServiceURL("instances", instancesId, "action")
}
func enlargeURL(sc *gophercloud.ServiceClient, instancesId string) string {
return sc.ServiceURL("instances", instancesId, "action")
}
func listerrorlogURL(sc *gophercloud.ServiceClient, instanceID string) string {
return sc.ServiceURL("instances", instanceID, "errorlog")
}
func listslowlogURL(sc *gophercloud.ServiceClient, instanceID string) string {
return sc.ServiceURL("instances", instanceID, "slowlog")
}