github.com/containers/podman/v4@v4.9.4/pkg/machine/define/image_format.go (about) 1 package define 2 3 type ImageFormat int64 4 5 const ( 6 Qcow ImageFormat = iota 7 Vhdx 8 Tar 9 Raw 10 ) 11 12 func (imf ImageFormat) Kind() string { 13 switch imf { 14 case Vhdx: 15 return "vhdx" 16 case Tar: 17 return "tar" 18 case Raw: 19 return "raw" 20 } 21 return "qcow2" 22 } 23 24 func (imf ImageFormat) KindWithCompression() string { 25 switch imf { 26 case Vhdx: 27 return "vhdx.zip" 28 case Tar: 29 return "tar.xz" 30 case Raw: 31 return "raw.gz" 32 } 33 return "qcow2.xz" 34 }