-
Notifications
You must be signed in to change notification settings - Fork 4
/
image.go
29 lines (26 loc) · 1.43 KB
/
image.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
package balena
import "go.einride.tech/balena/odata"
type Image struct {
CreatedAt string `json:"created_at,omitempty"`
ModifiedAt string `json:"modified_at,omitempty"`
ID int64 `json:"id,omitempty"`
StartTimestamp string `json:"start_timestamp,omitempty"`
EndTimestamp string `json:"end_timestamp,omitempty"`
Dockerfile string `json:"dockerfile,omitempty"`
IsABuildOfService odata.Object `json:"is_a_build_of__service,omitempty"`
ImageSize int64 `json:"image_size,omitempty"`
IsStoredAtImageLocation string `json:"is_stored_at__image_location,omitempty"`
ProjectType string `json:"project_type,omitempty"`
ErrorMessage string `json:"error_message,omitempty"`
BuildLog string `json:"build_log,omitempty"`
PushTimestamp string `json:"push_timestamp,omitempty"`
Status string `json:"status,omitempty"`
ContentHash string `json:"content_hash,omitempty"`
Contract string `json:"contract,omitempty"`
}
type ImageResponse struct {
CreatedAt string `json:"created_at,omitempty"`
ID int64 `json:"id,omitempty"`
IsPartOfRelease odata.Object `json:"is_part_of__release,omitempty"`
Image []*Image `json:"image,omitempty"`
}