-
Notifications
You must be signed in to change notification settings - Fork 43
/
version_image.go
29 lines (24 loc) · 1003 Bytes
/
version_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 models
type BuildImageOptions struct {
BackoffLimit *int32 `json:"backoff_limit,omitempty"`
ResourceRequest *ResourceRequest `json:"resource_request,omitempty"`
}
type ImageBuildingJobStatus struct {
State ImageBuildingJobState `json:"state"`
Message string `json:"message,omitempty"`
}
type ImageBuildingJobState string
const (
ImageBuildingJobStateActive ImageBuildingJobState = "active"
ImageBuildingJobStateSucceeded ImageBuildingJobState = "succeeded"
ImageBuildingJobStateFailed ImageBuildingJobState = "failed"
ImageBuildingJobStateUnknown ImageBuildingJobState = "unknown"
)
type VersionImage struct {
ProjectID ID `json:"project_id"`
ModelID ID `json:"model_id"`
VersionID ID `json:"version_id"`
ImageRef string `json:"image_ref"`
Exists bool `json:"exists"`
JobStatus ImageBuildingJobStatus `json:"image_building_job_status"`
}