MCPcopy Create free account
hub / github.com/containerd/nerdctl / Lock

Function Lock

pkg/containerutil/lock.go:25–37  ·  view source on GitHub ↗
(stateDir string)

Source from the content-addressed store, hash-verified

23)
24
25func Lock(stateDir string) (store.Store, error) {
26 stor, err := store.New(filepath.Join(stateDir, "oplock"), 0, 0)
27 if err != nil {
28 return nil, err
29 }
30
31 err = stor.Lock()
32 if err != nil {
33 return nil, err
34 }
35
36 return stor, nil
37}

Callers 2

CommitFunction · 0.92
RemoveContainerFunction · 0.92

Calls 2

NewFunction · 0.92
LockMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…