-
Notifications
You must be signed in to change notification settings - Fork 54
/
routes.go
87 lines (84 loc) · 4.13 KB
/
routes.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
package structs
var routes = map[string]string{}
func init() {
routes["Initialize"] = ""
routes["Start"] = ""
routes["AppCancel"] = "POST /apps/{name}/cancel"
routes["AppCreate"] = "POST /apps"
routes["AppDelete"] = "DELETE /apps/{name}"
routes["AppGet"] = "GET /apps/{name}"
routes["AppList"] = "GET /apps"
routes["AppLogs"] = "SOCKET /apps/{name}/logs"
routes["AppMetrics"] = "GET /apps/{name}/metrics"
routes["AppUpdate"] = "PUT /apps/{name}"
routes["BalancerList"] = "GET /apps/{app}/balancers"
routes["BuildCreate"] = "POST /apps/{app}/builds"
routes["BuildExport"] = "GET /apps/{app}/builds/{id}.tgz"
routes["BuildGet"] = "GET /apps/{app}/builds/{id}"
routes["BuildImport"] = "POST /apps/{app}/builds/import"
routes["BuildLogs"] = "SOCKET /apps/{app}/builds/{id}/logs"
routes["BuildList"] = "GET /apps/{app}/builds"
routes["BuildUpdate"] = "PUT /apps/{app}/builds/{id}"
routes["CapacityGet"] = "GET /system/capacity"
routes["CertificateApply"] = "PUT /apps/{app}/ssl/{service}/{port}"
routes["CertificateCreate"] = "POST /certificates"
routes["CertificateDelete"] = "DELETE /certificates/{id}"
routes["CertificateGenerate"] = "POST /certificates/generate"
routes["CertificateList"] = "GET /certificates"
routes["EventSend"] = "POST /events"
routes["FilesDelete"] = "DELETE /apps/{app}/processes/{pid}/files"
routes["FilesDownload"] = "GET /apps/{app}/processes/{pid}/files"
routes["FilesUpload"] = "POST /apps/{app}/processes/{pid}/files"
routes["InstanceKeyroll"] = "POST /instances/keyroll"
routes["InstanceList"] = "GET /instances"
routes["InstanceShell"] = "SOCKET /instances/{id}/shell"
routes["InstanceTerminate"] = "DELETE /instances/{id}"
routes["ObjectDelete"] = "DELETE /apps/{app}/objects/{key:.*}"
routes["ObjectExists"] = "HEAD /apps/{app}/objects/{key:.*}"
routes["ObjectFetch"] = "GET /apps/{app}/objects/{key:.*}"
routes["ObjectList"] = "GET /apps/{app}/objects"
routes["ObjectStore"] = "POST /apps/{app}/objects/{key:.*}"
routes["ProcessExec"] = "SOCKET /apps/{app}/processes/{pid}/exec"
routes["ProcessGet"] = "GET /apps/{app}/processes/{pid}"
routes["ProcessList"] = "GET /apps/{app}/processes"
routes["ProcessLogs"] = "SOCKET /apps/{app}/processes/{pid}/logs"
routes["ProcessRun"] = "POST /apps/{app}/services/{service}/processes"
routes["ProcessStop"] = "DELETE /apps/{app}/processes/{pid}"
routes["Proxy"] = "SOCKET /proxy/{host}/{port}"
routes["ReleaseCreate"] = "POST /apps/{app}/releases"
routes["ReleaseGet"] = "GET /apps/{app}/releases/{id}"
routes["ReleaseList"] = "GET /apps/{app}/releases"
routes["ReleasePromote"] = "POST /apps/{app}/releases/{id}/promote"
routes["RegistryAdd"] = "POST /registries"
routes["RegistryList"] = "GET /registries"
routes["RegistryProxy"] = "ANY /v2/{path:.*}"
routes["RegistryRemove"] = "DELETE /registries/{server:.*}"
routes["ResourceConsole"] = "SOCKET /apps/{app}/resources/{name}/console"
routes["ResourceExport"] = "GET /apps/{app}/resources/{name}/data"
routes["ResourceGet"] = "GET /apps/{app}/resources/{name}"
routes["ResourceImport"] = "PUT /apps/{app}/resources/{name}/data"
routes["ResourceList"] = "GET /apps/{app}/resources"
routes["ServiceList"] = "GET /apps/{app}/services"
routes["ServiceRestart"] = "POST /apps/{app}/services/{name}/restart"
routes["ServiceUpdate"] = "PUT /apps/{app}/services/{name}"
routes["SystemGet"] = "GET /system"
routes["SystemLogs"] = "SOCKET /system/logs"
routes["SystemInstall"] = ""
routes["SystemMetrics"] = "GET /system/metrics"
routes["SystemProcesses"] = "GET /system/processes"
routes["SystemReleases"] = "GET /system/releases"
routes["SystemResourceCreate"] = "POST /resources"
routes["SystemResourceDelete"] = "DELETE /resources/{name}"
routes["SystemResourceGet"] = "GET /resources/{name}"
routes["SystemResourceLink"] = "POST /resources/{name}/links"
routes["SystemResourceList"] = "GET /resources"
routes["SystemResourceTypes"] = "OPTIONS /resources"
routes["SystemResourceUnlink"] = "DELETE /resources/{name}/links/{app}"
routes["SystemResourceUpdate"] = "PUT /resources/{name}"
routes["SystemUninstall"] = ""
routes["SystemUpdate"] = "PUT /system"
routes["Workers"] = ""
}
func Routes() map[string]string {
return routes
}