MCPcopy
hub / github.com/openpubkey/opkssh / ReadFile

Method ReadFile

policy/files/filesystem.go:37–37  ·  view source on GitHub ↗

ReadFile reads the entire contents of a file.

(path string)

Source from the content-addressed store, hash-verified

35 Open(path string) (afero.File, error)
36 // ReadFile reads the entire contents of a file.
37 ReadFile(path string) ([]byte, error)
38
39 // MkdirAll creates a directory and all parents with the given permission.
40 MkdirAll(path string, perm fs.FileMode) error

Callers 15

TestDump_SuccessFunction · 0.65
LoadFileAtPathMethod · 0.65
ReadFileMethod · 0.65
loadPluginsMethod · 0.65
ReadFileMethod · 0.65
RunMethod · 0.65
TestLoginCmdFunction · 0.65
enumerateUserHomeDirsMethod · 0.65
configureSSHMethod · 0.65
checkSSHConfiguredMethod · 0.65
writeKeysToOpkSSHDirMethod · 0.65
writeKeysToSSHDirMethod · 0.65

Implementers 2

defaultFileSystempolicy/files/filesystem.go
mockFileSystemcommands/permissions_mocks_test.go

Calls

no outgoing calls

Tested by 7

TestDump_SuccessFunction · 0.52
ReadFileMethod · 0.52
TestLoginCmdFunction · 0.52
TestLogoutCmd_OpkSSHDirFunction · 0.52
TestLoginFunction · 0.52
TestLoginCustomKeyPathFunction · 0.52
createOpkSshSignerFunction · 0.52