MCPcopy Create free account
hub / github.com/docker/docker-language-server / WithReadDocumentFunc

Function WithReadDocumentFunc

internal/pkg/document/manager.go:75–79  ·  view source on GitHub ↗
(readDocFunc ReadDocumentFunc)

Source from the content-addressed store, hash-verified

73}
74
75func WithReadDocumentFunc(readDocFunc ReadDocumentFunc) ManagerOpt {
76 return func(manager *Manager) {
77 manager.readDocFunc = readDocFunc
78 }
79}
80
81// Read the document from the given URI and return its contents. This default
82// implementation of a ReadDocumentFunc only handles file: URIs and returns an

Callers 3

TestIncludedPathsFunction · 0.85
TestGetInstructionFunction · 0.85
TestGetDecoderFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestIncludedPathsFunction · 0.68
TestGetInstructionFunction · 0.68
TestGetDecoderFunction · 0.68