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

Method Accept

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

Accept returns `true` is the resource reference matches ResourceLoader supported protocol(s)

(path string)

Source from the content-addressed store, hash-verified

119type ResourceLoader interface {
120 // Accept returns `true` is the resource reference matches ResourceLoader supported protocol(s)
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

Callers 4

GetWorkingDirMethod · 0.65
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