MCPcopy Create free account
hub / github.com/conforma/cli / Open

Method Open

internal/opa/inspect.go:240–242  ·  view source on GitHub ↗

Open exists to make the aferoFsWrapper conform to the fs.FS interface. It is necessary to do this in order to change the first return type from afero.File to fs.File. Yes, even though afero.File conforms to the fs.File interface, go is not smart enough to detect this indirection.

(name string)

Source from the content-addressed store, hash-verified

238// even though afero.File conforms to the fs.File interface, go is not smart enough to
239// detect this indirection.
240func (w wrapperFs) Open(name string) (fs.File, error) {
241 return w.afs.Open(name)
242}

Callers 9

UnTarFunction · 0.45
matchesJSONLFileFunction · 0.45
AttestPredicateMethod · 0.45
fileLookupFunction · 0.45
hashFileFunction · 0.45
copyFileFunction · 0.45
tarGzipFileFunction · 0.45

Calls

no outgoing calls