MCPcopy
hub / github.com/containerd/containerd / isCheckpointPathExist

Function isCheckpointPathExist

client/task.go:804–817  ·  view source on GitHub ↗

isCheckpointPathExist only suitable for runc runtime now

(runtime string, v any)

Source from the content-addressed store, hash-verified

802
803// isCheckpointPathExist only suitable for runc runtime now
804func isCheckpointPathExist(runtime string, v any) bool {
805 if v == nil {
806 return false
807 }
808
809 switch runtime {
810 case plugins.RuntimeRuncV2:
811 if opts, ok := v.(*options.CheckpointOptions); ok && opts.ImagePath != "" {
812 return true
813 }
814 }
815
816 return false
817}

Callers 1

CheckpointMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…