lockfile

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package lockfile provides file-based locking for workspace write operations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Lock

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

Lock holds an exclusive file lock on the workspace.

func Acquire

func Acquire(rootDir string) (*Lock, error)

Acquire takes an exclusive lock on the workspace directory. Returns an error if another process holds the lock.

func (*Lock) Release

func (l *Lock) Release()

Release releases the lock.

Jump to

Keyboard shortcuts

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