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

Method rawLoad

pkg/ocihook/state/state.go:106–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

104}
105
106func (lf *Store) rawLoad() (err error) {
107 data, err := lf.safeStore.Get(lifecycleFile)
108 if err == nil {
109 err = json.Unmarshal(data, lf)
110 } else if errors.Is(err, store.ErrNotFound) {
111 err = nil
112 }
113
114 return err
115}
116
117func (lf *Store) rawSave() (err error) {
118 data, err := json.Marshal(lf)

Callers 1

TransformMethod · 0.95

Calls 2

UnmarshalMethod · 0.80
GetMethod · 0.65

Tested by

no test coverage detected