types: Add EngineImage into InstanceSpec, move FailedAt to Spec as well
`FailedAt` is not set by the replica itself. It's set by using the response from
engine. So the field will be used:
1. Indicates that the replica has failed.
2. Since it's failed, it should remain stopped.
@@ -67,6 +67,7 @@ const (
type InstanceSpec struct {
VolumeName string `json:"volumeName"`
NodeID string `json:"nodeID"`
+ EngineImage string `json:"engineImage"`
DesireState InstanceState
}
@@ -95,11 +96,11 @@ type ReplicaSpec struct {
VolumeSize string `json:"volumeSize"`
RestoreFrom string `json:"restoreFrom"`
RestoreName string `json:"restoreName"`
+ FailedAt string `json:"failedAt"`
}
type ReplicaStatus struct {
InstanceStatus
- FailedAt string `json:"failedAt"`
}
type ReplicaInfo struct {
