Documentation
¶
Index ¶
- func SetBeforeRenameHookForTest(hook func(path string, tempPath string) error) (restore func())
- func WriteFile(path string, payload []byte, perm os.FileMode) error
- func WriteFileFunc(path string, perm os.FileMode, write func(io.Writer) error) error
- func WriteFileFuncWithOptions(path string, perm os.FileMode, write func(io.Writer) error, opts Options) error
- func WriteFileWithOptions(path string, payload []byte, perm os.FileMode, opts Options) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetBeforeRenameHookForTest ¶
SetBeforeRenameHookForTest installs a process-wide hook used by tests to simulate interruptions between file sync and rename commit.
func WriteFileFunc ¶ added in v1.8.0
func WriteFileFuncWithOptions ¶ added in v1.8.0
Types ¶
Click to show internal directories.
Click to hide internal directories.