-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstructs.go
44 lines (36 loc) · 949 Bytes
/
structs.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
package main
type CommandMessage struct {
BuildID int `json:"buildId"`
ProjectID int `json:"projectId"`
Folder string `json:"folder"`
Commands [][]string `json:"commands"`
}
type DockerId struct {
ID string `json:"Id"`
}
type DockerStream struct {
Stream string `json:"stream"`
}
type DockerAux struct {
Aux DockerId `json:"aux"`
}
type DockerMessage struct {
Message string `json:"message"`
}
type DockerError struct {
ErrorDetail DockerMessage `json:"errorDetail"`
Error string `json:"error"`
}
type EventMessage struct {
Subject string `json:"subject"`
ProjectID int `json:"projectId"`
BuildID int `json:"buildId"`
Date int64 `json:"date"`
Content interface{} `json:"content"`
Type string `json:"type"`
}
type CommandResult struct {
Command string `json:"command"`
ExitCode int `json:"exitCode"`
Stdout string `json:"stdout"`
}