Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutexUnlock ¶ added in v0.11.0
type MutexUnlock func() error
Return type fo the unlock function.
func Lock ¶ added in v0.11.0
func Lock() (MutexUnlock, error)
Helps with parallel executions (e.g. with Terraform parallelism=n) ensuring only a single process at a time can interact with AWS and the internal cache – as the BadgerDB requires a filelock: https://github.com/dgraph-io/badger/blob/69926151f6532f2fe97a9b11ee9281519c8ec5e6/dir_unix.go#L45
Click to show internal directories.
Click to hide internal directories.