lock

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package lock implements the deploy lock: an atomic mkdir on the primary server with a human-readable details file, Kamal-style. The lock is scoped to the project, so unrelated apps sharing a server deploy independently.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Acquire

func Acquire(h *exec.Host, project, performer, version, message string) error

Acquire takes the project's lock or fails with the current holder's details.

func Release

func Release(h *exec.Host, project string) error

Release drops the project's lock.

func Status

func Status(h *exec.Host, project string) (string, error)

Status returns the project's lock details, or an error when unlocked.

func With

func With(h *exec.Host, project, performer, version, message string, fn func() error) error

With runs fn holding the project's lock, always releasing it afterwards.

Types

This section is empty.

Jump to

Keyboard shortcuts

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