-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathresponses.go
27 lines (23 loc) · 866 Bytes
/
responses.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
package dockerimagesave
import docker "github.com/fsouza/go-dockerclient"
// PullResponse is response format when calling pull image
type PullResponse struct {
ID string `json:"id,omitempty"`
Status string `json:"status,omitempty"`
Error string `json:"error,omitempty"`
}
// SearchResponse
type SearchResponse struct {
Term string `json:"term"`
Error string `json:"error,omitempty"`
Status string `json:"status,omitempty"`
SearchResult []docker.APIImageSearch `json:"search_result,omitempty"`
}
// SaveResponse is response format when calling save image
type SaveResponse struct {
ID string `json:"id,omitempty"`
URL string `json:"url,omitempty"`
Error string `json:"error,omitempty"`
Size int64 `json:"size,omitempty"`
Status string `json:"status,omitempty"`
}