lock

package
v1.33.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendToFile added in v1.31.0

func AppendToFile(filename string, data []byte, perm os.FileMode) error

AppendToFile appends DATA bytes to the specified FILENAME in a mutually exclusive way. The file is created if it does not exist, using the specified PERM (before umask)

func PathMutexSpec added in v1.6.1

func PathMutexSpec(path string) mutex.Spec

PathMutexSpec returns a mutex spec for a path

func WriteFile

func WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile decorates os.WriteFile with a file lock and retry

Types

This section is empty.

Jump to

Keyboard shortcuts

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