filepublication

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

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

func MoveNoReplace(fromPath, toPath string) error

MoveNoReplace atomically moves one filesystem entry to an absent destination. It never copies, traverses, or replaces either entry.

func Publish

func Publish(path string, contents []byte, mode fs.FileMode) (returnErr error)

Publish writes contents with mode to a same-directory temporary file and atomically creates path only when it is absent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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