MCPcopy Index your code
hub / github.com/Thunder-Compute/thunder-cli / WriteFile

Method WriteFile

internal/testutils/mocks.go:103–103  ·  view source on GitHub ↗
(filename string, data []byte, perm os.FileMode)

Source from the content-addressed store, hash-verified

101type FileSystem interface {
102 ReadFile(filename string) ([]byte, error)
103 WriteFile(filename string, data []byte, perm os.FileMode) error
104 MkdirAll(path string, perm os.FileMode) error
105 Stat(name string) (os.FileInfo, error)
106}

Callers 15

UpdateSSHConfigFunction · 0.65
SavePrivateKeyFunction · 0.65
DownloadFileFunction · 0.65
savePrivateKeyToFileFunction · 0.65
createKnownHostsEntryFunction · 0.65
TestNewSSHConfigErrorsFunction · 0.65
writeJSONCacheFunction · 0.65
SetupTestEnvironmentFunction · 0.65

Implementers 1

MockFileSysteminternal/testutils/mocks.go

Calls

no outgoing calls