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

Method Load

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

Load returns the path to a local copy of remote resource identified by `path`.

(ctx context.Context, path string)

Source from the content-addressed store, hash-verified

121 Accept(path string) bool
122 // Load returns the path to a local copy of remote resource identified by `path`.
123 Load(ctx context.Context, path string) (string, error)
124 // Dir computes path to resource"s parent folder, made relative if possible
125 Dir(path string) string
126}

Callers 3

ApplyIncludeFunction · 0.65
getExtendsBaseFromFileFunction · 0.65
LoadConfigFilesFunction · 0.65

Implementers 2

customLoaderloader/loader_test.go
localResourceLoaderloader/loader.go

Calls

no outgoing calls

Tested by

no test coverage detected