convenience function to check if an IP address is loopback or unspecified
(ips string)
| 521 | |
| 522 | // convenience function to check if an IP address is loopback or unspecified |
| 523 | func isLoopbackOrUnspecified(ips string) bool { |
| 524 | nip := net.ParseIP(ips) |
| 525 | if nip == nil { |
| 526 | return false // technically correct, I suppose |
| 527 | } |
| 528 | return nip.IsLoopback() || nip.IsUnspecified() |
| 529 | } |
| 530 | |
| 531 | // DetectArchitecture detects the architecture of a container by inspecting its |
| 532 | // image. |
no outgoing calls
no test coverage detected