osprofile

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 3 Imported by: 35

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 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"}

Functions

func IsARM added in v1.10.0

func IsARM(osArch string) bool

func NormalizeOSType

func NormalizeOSType(osname string) string

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL