Documentation
¶
Overview ¶
Package graphlock serializes terragraph plan/apply/destroy across machines with a remote lock object. Same-checkout races stay on internal/runlock.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrHeld = errors.New("another terragraph process holds the graph lock")
ErrHeld is returned when the graph lock object already exists.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
Matches(lock *blueprint.Lock) bool
Acquire(ctx context.Context, lock *blueprint.Lock) (Held, error)
}
Backend acquires a graph lock for one nested lock type.
Click to show internal directories.
Click to hide internal directories.