LoadModelWithContext reads a ConfigDetails and returns a fully loaded configuration as a yaml dictionary
(ctx context.Context, configDetails *types.ConfigDetails, opts *Options)
| 367 | |
| 368 | // LoadModelWithContext reads a ConfigDetails and returns a fully loaded configuration as a yaml dictionary |
| 369 | func loadModelWithContext(ctx context.Context, configDetails *types.ConfigDetails, opts *Options) (map[string]any, error) { |
| 370 | if len(configDetails.ConfigFiles) < 1 { |
| 371 | return nil, errors.New("no compose file specified") |
| 372 | } |
| 373 | |
| 374 | err := projectName(configDetails, opts) |
| 375 | if err != nil { |
| 376 | return nil, err |
| 377 | } |
| 378 | |
| 379 | return load(ctx, *configDetails, opts, nil) |
| 380 | } |
| 381 | |
| 382 | func ToOptions(configDetails *types.ConfigDetails, options []func(*Options)) *Options { |
| 383 | opts := &Options{ |
no test coverage detected
searching dependent graphs…