isCheckpointPathExist only suitable for runc runtime now
(runtime string, v any)
| 802 | |
| 803 | // isCheckpointPathExist only suitable for runc runtime now |
| 804 | func 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 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…