()
| 35 | } |
| 36 | |
| 37 | func (i *Instance) IsCreated() bool { |
| 38 | _, err := utils.DockerClient.ContainerInspect(context.Background(), fmt.Sprintf( |
| 39 | "%s_%s", i.Type, i.InstanceID, |
| 40 | ), client.ContainerInspectOptions{}) |
| 41 | if err != nil { |
| 42 | return false |
| 43 | } |
| 44 | return true |
| 45 | } |
| 46 | |
| 47 | func (i *Instance) IsRunning() bool { |
| 48 | info, err := utils.DockerClient.ContainerInspect(context.Background(), fmt.Sprintf( |
nothing calls this directly
no outgoing calls
no test coverage detected