Documentation
¶
Overview ¶
Package filepublication owns complete same-directory file preparation and released-platform atomic no-replace namespace publication.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MoveNoReplace ¶
MoveNoReplace atomically moves one filesystem entry to an absent destination. It never copies, traverses, or replaces either entry.
func MoveNoReplaceAt ¶ added in v0.41.0
MoveNoReplaceAt atomically moves one entry to an absent sibling destination relative to anchor. Names must contain only the final path component.
func Publish ¶
Publish writes contents with mode to a same-directory temporary file and atomically creates path only when it is absent.
func PublishConfined ¶ added in v0.34.0
func PublishConfined(root confinedRoot, destination string, contents []byte, mode fs.FileMode) error
PublishConfined prepares and publishes a complete file through root-confined operations. Link supplies the atomic no-replace namespace operation: the complete temporary inode becomes visible at path only when path is absent.
Types ¶
This section is empty.