-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
59 lines (50 loc) · 1.4 KB
/
types.go
File metadata and controls
59 lines (50 loc) · 1.4 KB
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
package main
//ParseUserInfo save payload from http.Request
type ParseUserInfo struct {
AccessID string `json:"accessID"`
AccessSecret string `json:"accessSecret"`
}
//ParseToken save payload from http.Request
type ParseToken struct {
AccessToken string `json:"accessToken"`
RunEnv string `json:"runEnv"`
}
//ParseProject save payload from http.Request
type ParseProject struct {
AccessToken string `json:"accessToken"`
RunEnv string `json:"runEnv"`
ProjectName string `json:"projectName"`
}
//ParseService save payload from http.Request
type ParseService struct {
AccessToken string `json:"accessToken"`
RunEnv string `json:"runEnv"`
ServiceID string `json:"serviceID"`
Tail string `json:"tail"`
Since string `json:"since"`
}
//Project desc a project
type Project struct {
Icon string `json:"icon"`
Name string `json:"name"`
Status string `json:"status"`
}
//Projects desc a list of projects
type Projects struct {
Env string `json:"env"`
Data []Project `json:"data"`
}
//Service desc a docker swarm service
type Service struct {
ID string `json:"id"`
Name string `json:"name"`
Replicas string `json:"replicas"`
Image string `json:"image"`
}
//Services desc a list of docker swarm services
type Services struct {
Env string `json:"env"`
ProjectName string `json:"projectName"`
Data []Service `json:"data"`
}
var port string