safefs

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package safefs provides narrow filesystem primitives for cache publication.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicWriteFile

func AtomicWriteFile(path string, data []byte, perm fs.FileMode) error

AtomicWriteFile publishes data via a unique temporary file and rename. Unique names keep concurrent writers from publishing each other's partial data. Sync bounds torn writes across crashes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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