| 22 | } |
| 23 | |
| 24 | type Instance struct { |
| 25 | InstanceID string `json:"instance_id"` |
| 26 | Name string `json:"name"` |
| 27 | Type string `json:"type"` |
| 28 | Image string `json:"image"` |
| 29 | Extra map[string]string `json:"extra"` |
| 30 | DeviceInfo map[string]DeviceRequireInfo `json:"device_need"` |
| 31 | Resource ResourceLimit `json:"resource"` |
| 32 | NodeIndex int `json:"node_index"` |
| 33 | Connections map[string]ConnectionInfo `json:"connections"` |
| 34 | Start bool `json:"start"` |
| 35 | } |
| 36 | |
| 37 | func (i *Instance) IsCreated() bool { |
| 38 | _, err := utils.DockerClient.ContainerInspect(context.Background(), fmt.Sprintf( |
nothing calls this directly
no outgoing calls
no test coverage detected