Documentation
¶
Overview ¶
compat-aws.go provides AWS-specific compatibility checking functionality
Package compat provides compatibility checking functionality between VM specifications and images across different Cloud Service Providers (CSPs). This package centralizes all CSP-specific compatibility validation logic.
Index ¶
- func CheckAlibaba(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckAws(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckAzure(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckCompatibility(csp string, spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckGcp(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckIbm(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckKt(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckNcp(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckNhn(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckOpenstack(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func CheckTencent(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
- func FilterNcpVmSpecsByHypervisor(vmSpecs []cloudmodel.TbSpecInfo) []cloudmodel.TbSpecInfo
- type Checker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAlibaba ¶
func CheckAlibaba(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckAlibaba checks compatibility between Alibaba Cloud VM spec and OS image Primary focus: NVMe support, Boot mode, and Disk compatibility
func CheckAws ¶
func CheckAws(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckAws checks AWS-specific compatibility following the 4-step validation Note: CPU Architecture compatibility is already checked in the common function 1. Virtualization Type compatibility 2. Hypervisor and Driver compatibility (ENA + NVMe) - Most Critical 3. Boot Mode compatibility 4. Xen-on-Nitro compatibility (when applicable)
func CheckAzure ¶
func CheckAzure(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckAzure checks compatibility between Azure VM spec and OS image Primary focus: Hypervisor Generation compatibility (V1 vs V2)
func CheckCompatibility ¶
func CheckCompatibility(csp string, spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckCompatibility performs compatibility check between spec and image for the specified CSP
func CheckGcp ¶
func CheckGcp(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckGcp checks compatibility between GCP VM spec and OS image
func CheckIbm ¶
func CheckIbm(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckIbm checks compatibility between IBM Cloud VM spec and OS image
func CheckKt ¶
func CheckKt(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckKt checks compatibility between KT Cloud VM spec and OS image
func CheckNcp ¶
func CheckNcp(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckNcp checks compatibility between NCP VM spec and OS image
func CheckNhn ¶
func CheckNhn(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckNhn checks compatibility between NHN Cloud VM spec and OS image
func CheckOpenstack ¶
func CheckOpenstack(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckOpenstack checks compatibility between OpenStack VM spec and OS image
func CheckTencent ¶
func CheckTencent(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
CheckTencent checks compatibility between Tencent Cloud VM spec and OS image
func FilterNcpVmSpecsByHypervisor ¶
func FilterNcpVmSpecsByHypervisor(vmSpecs []cloudmodel.TbSpecInfo) []cloudmodel.TbSpecInfo
FilterNcpVmSpecsByHypervisor filters NCP VM specs to include only KVM hypervisor specs
Types ¶
type Checker ¶
type Checker interface {
CheckCompatibility(spec cloudmodel.TbSpecInfo, image cloudmodel.TbImageInfo) bool
}
Checker interface defines the contract for CSP-specific compatibility checkers