Documentation ¶
Index ¶
Constants ¶
View Source
const ( OS_ARCH_X86 = "x86" OS_ARCH_ARM = "arm" OS_ARCH_I386 = "i386" OS_ARCH_X86_32 = "x86_32" OS_ARCH_X86_64 = "x86_64" OS_ARCH_AARCH32 = "aarch32" OS_ARCH_AARCH64 = "aarch64" OS_BOOT_BIOS = "BIOS" OS_BOOT_UEFI = "UEFI" )
View Source
const ( OS_TYPE_MACOS = "macOS" OS_TYPE_VMWARE = "VMWare" OS_TYPE_LINUX = "Linux" OS_TYPE_WINDOWS = "Windows" OS_TYPE_ANDROID = "Android" )
Variables ¶
View Source
var ( ARCH_X86 = []string{ OS_ARCH_X86, OS_ARCH_I386, OS_ARCH_X86_32, OS_ARCH_X86_64, } ARCH_ARM = []string{ OS_ARCH_ARM, OS_ARCH_AARCH32, OS_ARCH_AARCH64, } )
View Source
var DISK_CACHE_MODES = []string{"writeback", "none", "writethrough"}
View Source
var DISK_DRIVERS = []string{"virtio", "ide", "scsi", "sata", "pvscsi"}
View Source
var FS_TYPES = []string{"swap", "ext2", "ext3", "ext4", "xfs", "ntfs", "fat", "hfsplus"}
View Source
var IMAGE_FORMAT_TYPES = []string{"qcow2", "raw", "docker", "iso", "vmdk", "vmdkflatver1", "vmdkflatver2", "vmdkflat",
"vmdksparse", "vmdksparsever1", "vmdksparsever2", "vmdksesparse", "vhd"}
View Source
var OS_TYPES = []string{OS_TYPE_MACOS, OS_TYPE_VMWARE, OS_TYPE_LINUX, OS_TYPE_WINDOWS, OS_TYPE_ANDROID}
Functions ¶
func NormalizeOSType ¶
Types ¶
type SOSProfile ¶
type SOSProfile struct { DiskDriver string NetDriver string FsFormat string OSType string Hypervisor string }
func GetOSProfile ¶
func GetOSProfile(osname string, hypervisor string) SOSProfile
func GetOSProfileFromImageProperties ¶
func GetOSProfileFromImageProperties(imgProp map[string]string, hypervisor string) (SOSProfile, error)
Click to show internal directories.
Click to hide internal directories.