Documentation ¶
Index ¶
- type MutexKVdeprecated
- func NewMutexKV() *MutexKVdeprecated
- func (m *MutexKV) Lock(key string)deprecated
- func (m *MutexKV) Unlock(key string)deprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MutexKV
deprecated
type MutexKV struct {
// contains filtered or unexported fields
}
MutexKV is a simple key/value store for arbitrary mutexes. It can be used to serialize changes across arbitrary collaborators that share knowledge of the keys they must serialize on.
Deprecated: This will be removed in v2 without replacement. If you need its functionality, you can copy it or reference the v1 package.
The initial use case is to let aws_security_group_rule resources serialize their access to individual security groups based on SG ID.
func NewMutexKV
deprecated
func NewMutexKV() *MutexKV
Returns a properly initalized MutexKV
Deprecated: This will be removed in v2 without replacement. If you need its functionality, you can copy it or reference the v1 package.
Click to show internal directories.
Click to hide internal directories.