MCPcopy
hub / github.com/tailscale/tailscale / WriteFile

Method WriteFile

net/dns/direct.go:617–617  ·  view source on GitHub ↗
(name string, contents []byte, perm os.FileMode)

Source from the content-addressed store, hash-verified

615 Stat(name string) (isRegular bool, err error)
616 Truncate(name string) error
617 WriteFile(name string, contents []byte, perm os.FileMode) error
618}
619
620// directFS is a wholeFileFS implemented directly on the OS.

Callers 15

installSystemdFunction · 0.65
installFreedesktopFunction · 0.65
installIconFunction · 0.65
WriteNodeFileFunction · 0.65
TestNodeFileFormatFunction · 0.65
TryConfigFileMigrationFunction · 0.65
writeSysctlFunction · 0.65
hostKeyFileOrCreateFunction · 0.65
TestMainFunction · 0.65
generateClientKeyFunction · 0.65
createSelfSignedIPCertFunction · 0.65
writeOutputFunction · 0.65

Implementers 2

wslFSnet/dns/wsl_windows.go
directFSnet/dns/direct.go

Calls

no outgoing calls

Tested by 15

TestNodeFileFormatFunction · 0.52
TestMainFunction · 0.52
generateClientKeyFunction · 0.52
TestRetryFunction · 0.52
TestAutoRetryFunction · 0.52
TestPermanentFailureFunction · 0.52
TestBuildErrorFunction · 0.52
TestTimeoutFunction · 0.52
TestCachedFunction · 0.52
TestStateStoreErrorFunction · 0.52