(dockerCompose string)
| 1944 | } |
| 1945 | |
| 1946 | func isHostModel(dockerCompose string) bool { |
| 1947 | composeMap := make(map[string]interface{}) |
| 1948 | _ = yaml.Unmarshal([]byte(dockerCompose), &composeMap) |
| 1949 | services, serviceValid := composeMap["services"].(map[string]interface{}) |
| 1950 | if !serviceValid { |
| 1951 | return false |
| 1952 | } |
| 1953 | for _, service := range services { |
| 1954 | serviceValue := service.(map[string]interface{}) |
| 1955 | if value, ok := serviceValue["network_mode"]; ok && value == "host" { |
| 1956 | return true |
| 1957 | } |
| 1958 | } |
| 1959 | return false |
| 1960 | } |
| 1961 | |
| 1962 | func copyAppDetailMissing(fileOp files.FileOp, srcDir, dstDir string) error { |
| 1963 | entries, err := os.ReadDir(srcDir) |
no outgoing calls
no test coverage detected