privatefs

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirMode  fs.FileMode = 0o700
	FileMode fs.FileMode = 0o600
)

Variables

This section is empty.

Functions

func AtomicReplace

func AtomicReplace(path string, write func(io.Writer) error) (err error)

func AtomicReplaceFile

func AtomicReplaceFile(path string, write func(*os.File) error) (err error)

func AtomicWriteFile

func AtomicWriteFile(path string, data []byte) error

func EnsureDir

func EnsureDir(path string) error

func RepairFile

func RepairFile(path string) error

func WithLock

func WithLock(ctx context.Context, path string, fn func() error) (retErr error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL