(ctx context.Context, index *v1.Index, snapshotterName string, id string)
| 750 | } |
| 751 | |
| 752 | func (t *task) checkpointRWSnapshot(ctx context.Context, index *v1.Index, snapshotterName string, id string) error { |
| 753 | opts := []diff.Opt{ |
| 754 | diff.WithReference(fmt.Sprintf("checkpoint-rw-%s", id)), |
| 755 | } |
| 756 | rw, err := rootfs.CreateDiff(ctx, id, t.client.SnapshotService(snapshotterName), t.client.DiffService(), opts...) |
| 757 | if err != nil { |
| 758 | return err |
| 759 | } |
| 760 | rw.Platform = &v1.Platform{ |
| 761 | OS: goruntime.GOOS, |
| 762 | Architecture: goruntime.GOARCH, |
| 763 | } |
| 764 | index.Manifests = append(index.Manifests, rw) |
| 765 | return nil |
| 766 | } |
| 767 | |
| 768 | func (t *task) checkpointImage(ctx context.Context, index *v1.Index, image string) error { |
| 769 | if image == "" { |
no test coverage detected