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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user