(buildRoot embed.FS, startingDir string)
| 360 | } |
| 361 | |
| 362 | func dockerBuildRootFiles(buildRoot embed.FS, startingDir string) map[string][]byte { |
| 363 | files := dockerBuildRootDirFiles(buildRoot, startingDir) |
| 364 | result := map[string][]byte{} |
| 365 | for file, data := range files { |
| 366 | result[strings.TrimPrefix(file, fmt.Sprintf("%s/", startingDir))] = data |
| 367 | } |
| 368 | return result |
| 369 | } |
| 370 | |
| 371 | func dockerBuildRootDirFiles(buildRoot embed.FS, dir string) map[string][]byte { |
| 372 | result := map[string][]byte{} |
no test coverage detected