MCPcopy
hub / github.com/google/go-jsonnet / FileImporter

Struct FileImporter

imports.go:224–233  ·  view source on GitHub ↗

Concrete importers ------------------------------------- FileImporter imports data from the filesystem.

Source from the content-addressed store, hash-verified

222
223// FileImporter imports data from the filesystem.
224type FileImporter struct {
225 fsCache map[string]*fsCacheEntry
226
227 // JPaths is a slice of extra paths to search for relative imports.
228 // Note this is not an isolation or restriction mechanism; absolute
229 // import paths or paths that traverse up the directory hierarchy
230 // are both allowed, so imports can access any file path regardless
231 // of the content of JPaths.
232 JPaths []string
233}
234
235type fsCacheEntry struct {
236 contents Contents

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected