-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathtypes.go
52 lines (47 loc) · 1.2 KB
/
types.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
package main
// PassedParams contains the parameters needed by docker build.
type PassedParams struct {
ImageName string
Username string
Password string
Email string
Dockerfile string
DockerfileURL string
TarURL string
TarFile []byte
GitUsr string
GitRepo string
GitTag string
}
// PushAuth ...
type PushAuth struct {
Username string `json:"username"`
Password string `json:"password"`
Serveraddress string `json:"serveraddress"`
Email string `json:"email"`
}
// StreamCatcher ...
type StreamCatcher struct {
ErrorDetail ErrorCatcher `json:"errorDetail"`
Stream string `json:"stream"`
}
// ErrorCatcher ...
type ErrorCatcher struct {
Message string `json:"message"`
Error string `json:"error"`
}
// MessageStream ...
type MessageStream struct {
Error string `json:"error"`
ErrorDetail struct {
Message string `json:"message"`
} `json:"errorDetail"`
ID string `json:"id"`
Progress string `json:"progress"`
ProgressDetail struct {
Current int `json:"current"`
Total int `json:"total"`
} `json:"progressDetail"`
Status string `json:"status"`
Stream string `json:"stream"`
}