MCPcopy Create free account
hub / github.com/compose-spec/compose-go / LoadModelWithContext

Function LoadModelWithContext

loader/loader.go:363–366  ·  view source on GitHub ↗

LoadModelWithContext reads a ConfigDetails and returns a fully loaded configuration as a yaml dictionary

(ctx context.Context, configDetails types.ConfigDetails, options ...func(*Options))

Source from the content-addressed store, hash-verified

361
362// LoadModelWithContext reads a ConfigDetails and returns a fully loaded configuration as a yaml dictionary
363func LoadModelWithContext(ctx context.Context, configDetails types.ConfigDetails, options ...func(*Options)) (map[string]any, error) {
364 opts := ToOptions(&configDetails, options)
365 return loadModelWithContext(ctx, &configDetails, opts)
366}
367
368// LoadModelWithContext reads a ConfigDetails and returns a fully loaded configuration as a yaml dictionary
369func loadModelWithContext(ctx context.Context, configDetails *types.ConfigDetails, opts *Options) (map[string]any, error) {

Callers 1

LoadModelMethod · 0.92

Calls 2

ToOptionsFunction · 0.85
loadModelWithContextFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…