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

Method rawSave

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

Source from the content-addressed store, hash-verified

115}
116
117func (lf *Store) rawSave() (err error) {
118 data, err := json.Marshal(lf)
119 if err != nil {
120 return err
121 }
122 return lf.safeStore.Set(data, lifecycleFile)
123}
124
125func (lf *Store) rawDelete() (err error) {
126 return lf.safeStore.Delete(lifecycleFile)

Callers 1

TransformMethod · 0.95

Calls 2

MarshalMethod · 0.80
SetMethod · 0.65

Tested by

no test coverage detected