(ctx context.Context, container *containers.Container)
| 752 | } |
| 753 | |
| 754 | func (l *local) getTaskFromContainer(ctx context.Context, container *containers.Container) (runtime.Task, error) { |
| 755 | t, err := l.v2Runtime.Get(ctx, container.ID) |
| 756 | if err != nil { |
| 757 | return nil, status.Errorf(codes.NotFound, "task %v not found", container.ID) |
| 758 | } |
| 759 | return t, nil |
| 760 | } |
| 761 | |
| 762 | // getCheckpointPath only suitable for runc runtime now |
| 763 | func getCheckpointPath(runtime string, option *ptypes.Any) (string, error) { |
no test coverage detected