2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-12-14 15:03:12 +00:00

add keep-cache option to preserve intermediate docker images

Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
2023-02-28 12:02:57 +01:00
committed by Adphi
parent 4780228c95
commit be88bc29f5
10 changed files with 53 additions and 13 deletions

View File

@@ -28,6 +28,8 @@ type convertOptions struct {
bootSize uint64
luksPassword string
keepCache bool
}
func WithSize(size uint64) ConvertOption {
@@ -83,3 +85,9 @@ func WithLuksPassword(password string) ConvertOption {
o.luksPassword = password
}
}
func WithKeepCache(b bool) ConvertOption {
return func(o *convertOptions) {
o.keepCache = b
}
}