imagetools

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 24

Documentation

Index

Constants

View Source
const (
	OS_DIST_CENTOS        = "CentOS"
	OS_DIST_CENTOS_STREAM = "CentOS Stream"

	OS_DIST_RHEL     = "RHEL"
	OS_DIST_FREE_BSD = "FreeBSD"

	OS_DIST_UBUNTU_SERVER = "Ubuntu Server"
	OS_DIST_UBUNTU        = "Ubuntu"

	OS_DIST_OPEN_SUSE = "OpenSUSE"
	OS_DIST_SUSE      = "SUSE"
	OS_DIST_DEBIAN    = "Debian"
	OS_DIST_CORE_OS   = "CoreOS"
	OS_DIST_EULER_OS  = "EulerOS"
	OS_DIST_ALIYUN    = "Aliyun"

	OS_DIST_ALIBABA_CLOUD_LINUX = "Alibaba Cloud Linux"
	OS_DIST_ANOLIS              = "Anolis OS"
	OS_DIST_ROCKY_LINUX         = "Rocky Linux"
	OS_DIST_FEDORA              = "Fedora"
	OS_DIST_ALMA_LINUX          = "AlmaLinux"
	OS_DIST_AMAZON_LINUX        = "Amazon Linux"

	OS_DIST_WINDOWS_SERVER = "Windows Server"
	OS_DIST_WINDOWS        = "Windows"

	OS_DIST_KYLIN = "Kylin"
	OS_DIST_UOS   = "UOS"

	OS_DIST_TENCENTOS_SERVER = "TencentOS Server"
	OS_DIST_OTHER_LINUX      = "Others Linux"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	Name          string
	OsArch        string
	OsType        string
	OsDistro      string
	OsVersion     string
	OsFullVersion string
	OsLang        string
	OsBios        string
}

func NormalizeImageInfo

func NormalizeImageInfo(imageName, osArch, osType, osDist, osVersion string) ImageInfo

func (ImageInfo) GetFullOsName

func (i ImageInfo) GetFullOsName() string

Jump to

Keyboard shortcuts

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