statelock

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package statelock serializes operations that read or update a managed state directory.

Index

Constants

This section is empty.

Variables

View Source
var ErrBusy = errors.New("managed artifact state is busy")

Functions

This section is empty.

Types

type Lease

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

Lease is an exclusive, cross-process lock for a managed artifact directory.

func Acquire

func Acquire(ctx context.Context, statePath string) (*Lease, error)

func (*Lease) Release

func (l *Lease) Release() error

Jump to

Keyboard shortcuts

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