dirlock

package
v0.0.0-...-7ec15ec Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: GPL-3.0, GPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package dirlock provides non-blocking process ownership for private local state directories. It is an operational consistency boundary, not a substitute for filesystem permissions or protection from a hostile process running as the same user.

Index

Constants

View Source
const MaxNameBytes = 128

Variables

View Source
var ErrHeld = errors.New("private directory is already managed")

Functions

This section is empty.

Types

type Lock

type Lock struct {
	// contains filtered or unexported fields
}

func Acquire

func Acquire(directory string, name string) (*Lock, error)

func (*Lock) Close

func (l *Lock) Close() error

Jump to

Keyboard shortcuts

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