Documentation
¶
Index ¶
- Constants
- func AtomicReplace(path string, write func(io.Writer) error) (err error)
- func AtomicReplaceFile(path string, write func(*os.File) error) (err error)
- func AtomicWriteFile(path string, data []byte) error
- func EnsureDir(path string) error
- func RepairFile(path string) error
- func WithLock(ctx context.Context, path string, fn func() error) (retErr error)
Constants ¶
View Source
const ( DirMode fs.FileMode = 0o700 FileMode fs.FileMode = 0o600 )
Variables ¶
This section is empty.
Functions ¶
func AtomicReplaceFile ¶
func AtomicWriteFile ¶
func RepairFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.