(path string)
| 346 | } |
| 347 | |
| 348 | func ReadConfig(path string) ([]config.Node, error) { |
| 349 | f, err := os.Open(path) |
| 350 | if err != nil { |
| 351 | return nil, err |
| 352 | } |
| 353 | defer func() { |
| 354 | if err := f.Close(); err != nil { |
| 355 | log.Println("failed to close config file:", err) |
| 356 | } |
| 357 | }() |
| 358 | |
| 359 | return parser.Read(f, path) |
| 360 | } |
| 361 | |
| 362 | func moduleConfigure(configPath string) (*container.C, error) { |
| 363 | c := container.New() |
no test coverage detected