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

Method Load

pkg/ocihook/state/state.go:64–72  ·  view source on GitHub ↗

Load will populate the struct with existing in-store lifecycle information

()

Source from the content-addressed store, hash-verified

62
63// Load will populate the struct with existing in-store lifecycle information
64func (lf *Store) Load() (err error) {
65 defer func() {
66 if err != nil {
67 err = errors.Join(ErrLifecycleStore, err)
68 }
69 }()
70
71 return lf.safeStore.WithLock(lf.rawLoad)
72}
73
74// Transform should be used to perform random mutations
75func (lf *Store) Transform(fun func(lf *Store) error) (err error) {

Callers

nothing calls this directly

Calls 1

WithLockMethod · 0.65

Tested by

no test coverage detected