MCPcopy
hub / github.com/lxc/incus / Open

Method Open

cmd/incusd/api.go:478–485  ·  view source on GitHub ↗

Open is part of the http.FileSystem interface.

(name string)

Source from the content-addressed store, hash-verified

476
477// Open is part of the http.FileSystem interface.
478func (httpFS uiHTTPDir) Open(name string) (http.File, error) {
479 fsFile, err := httpFS.FileSystem.Open(name)
480 if err != nil && errors.Is(err, fs.ErrNotExist) {
481 return httpFS.FileSystem.Open("index.html")
482 }
483
484 return fsFile, err
485}
486
487type documentationHTTPDir struct {
488 http.FileSystem

Callers 15

unpackOCIImageFunction · 0.45
WriteFileMethod · 0.45
DefaultGatewaySubnetV4Function · 0.45
inRoutingTableFunction · 0.45
GetHostDeviceFunction · 0.45
GetLogMethod · 0.45
qcow2MigrateVolumeMethod · 0.45
devForPathFunction · 0.45
setReceivedUUIDFunction · 0.45
cephGetKeyFromFileFunction · 0.45
cephKeyringFromFileFunction · 0.45
BlockDiskSizeBytesFunction · 0.45

Calls

no outgoing calls

Tested by 10

newTxForConfigFunction · 0.36
newDBFunction · 0.36
newTxForDumpFunction · 0.36
newTxForSlicesFunction · 0.36
newTxForObjectsFunction · 0.36
newTxForCountFunction · 0.36
newDBFunction · 0.36
newDBFunction · 0.36
TestGateway_SingleFunction · 0.36