(vol string)
| 378 | } |
| 379 | |
| 380 | func getVolume(vol string) volume { |
| 381 | s := strings.Split(vol, ":") |
| 382 | srcDir := s[0] |
| 383 | dstDir := s[1] |
| 384 | readOnly := len(s) > 2 && s[2] == "ro" |
| 385 | volType := "volume" |
| 386 | if isBindMount(srcDir) { |
| 387 | volType = "bind" |
| 388 | } |
| 389 | return volume{ |
| 390 | Type: volType, |
| 391 | Source: srcDir, |
| 392 | Target: dstDir, |
| 393 | ReadOnly: readOnly, |
| 394 | } |
| 395 | |
| 396 | } |
| 397 | |
| 398 | func getJaeger(version int) service { |
| 399 | if version == 2 { |
no test coverage detected
searching dependent graphs…