machinelock

package
v0.0.0-...-2608902 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2016 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Manifold

func Manifold(config ManifoldConfig) dependency.Manifold

Manifold returns a dependency.Manifold that governs the construction of and access to a machine-wide lock intended to prevent various operations from running concurrently and interfering with one another. Examples (are not limited to): hook executions, package installation, synchronisation of reboots. Clients can access the lock by passing a **fslock.Lock into the out param of their dependency.Context's Get method.

Types

type ManifoldConfig

type ManifoldConfig util.AgentManifoldConfig

ManifoldConfig specifies the names a machinelock manifold should use to address its dependencies.

Jump to

Keyboard shortcuts

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