MCPcopy Create free account
hub / github.com/awslabs/amazon-eks-ami / ReadFile

Method ReadFile

nodeadm/internal/system/filesystem.go:24–28  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

22}
23
24func (RealFileSystem) ReadFile(name string) ([]byte, error) {
25 // This has a slight issue since gosec will not flag lines that call RealFileSystem.ReadFile.
26 // #nosec G304 intended usage.
27 return os.ReadFile(name)
28}
29
30func (RealFileSystem) ReadDir(name string) ([]fs.DirEntry, error) {
31 return os.ReadDir(name)

Callers

nothing calls this directly

Calls 1

ReadFileMethod · 0.65

Tested by

no test coverage detected