MCPcopy
hub / github.com/caddyserver/caddy / ReadFile

Method ReadFile

internal/filesystems/os.go:22–22  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

20func (OsFS) Glob(pattern string) ([]string, error) { return filepath.Glob(pattern) }
21func (OsFS) ReadDir(name string) ([]fs.DirEntry, error) { return os.ReadDir(name) }
22func (OsFS) ReadFile(name string) ([]byte, error) { return os.ReadFile(name) }
23
24var (
25 _ fs.StatFS = (*OsFS)(nil)

Callers 15

InstanceIDFunction · 0.80
LoadMethod · 0.80
LoadCertificatesMethod · 0.80
LoadCertificatesMethod · 0.80
ProvisionMethod · 0.80
convertPEMFilesToDERFunction · 0.80
TestLeafFileLoaderFunction · 0.80
TestLeafFolderLoaderFunction · 0.80
ProvisionMethod · 0.80
TestLeafPEMLoaderFunction · 0.80
MakeTLSClientConfigMethod · 0.80

Calls

no outgoing calls

Tested by 4

TestLeafFileLoaderFunction · 0.64
TestLeafFolderLoaderFunction · 0.64
TestLeafPEMLoaderFunction · 0.64
TestCaddyfileAdaptToJSONFunction · 0.64