MCPcopy Create free account
hub / github.com/cloudbase/garm / Lock

Method Lock

locking/interface.go:24–24  ·  view source on GitHub ↗
(key, identifier string)

Source from the content-addressed store, hash-verified

22type Locker interface {
23 TryLock(key, identifier string) bool
24 Lock(key, identifier string)
25 LockWithContext(ctx context.Context, key, identifier string) error
26 LockedBy(key string) (string, bool)
27 Unlock(key string, remove bool)

Callers 15

SetTemplateCacheMethod · 0.65
GetTemplateMethod · 0.65
DeleteTemplateMethod · 0.65
GetMethod · 0.65
SetMethod · 0.65
SetToolsErrorMethod · 0.65
DeleteMethod · 0.65
SetCredentialsMethod · 0.65
GetCredentialsMethod · 0.65
DeleteCredentialsMethod · 0.65

Implementers 1

keyMutexlocking/local_locker.go

Calls

no outgoing calls

Tested by 4

TearDownTestMethod · 0.52
syncJobsFromDBMethod · 0.52