Respect user defined/default sizes on upgrade (#587)

This commit is contained in:
Itxaka
2024-11-06 11:34:01 +01:00
committed by GitHub
parent 87fca9570f
commit 6634e18aa3
7 changed files with 73 additions and 71 deletions

View File

@@ -36,7 +36,7 @@ const (
// ImageSource represents the source from where an image is created for easy identification
type ImageSource struct {
source string `yaml:"source"`
srcType string
srcType string `yaml:"type"`
}
func (i ImageSource) Value() string {

View File

@@ -37,4 +37,5 @@ type FS interface {
OpenFile(name string, flag int, perm fs.FileMode) (*os.File, error)
WriteFile(filename string, data []byte, perm os.FileMode) error
Rename(oldpath, newpath string) error
Truncate(name string, size int64) error
}