compat

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAlibaba

func CheckAlibaba(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) 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.SpecInfo, image cloudmodel.ImageInfo) 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.SpecInfo, image cloudmodel.ImageInfo) 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.SpecInfo, image cloudmodel.ImageInfo) bool

CheckCompatibility performs compatibility check between spec and image for the specified CSP

func CheckGcp

func CheckGcp(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool

CheckGcp checks compatibility between GCP VM spec and OS image

func CheckIbm

func CheckIbm(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool

CheckIbm checks compatibility between IBM Cloud VM spec and OS image

func CheckKt

func CheckKt(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool

CheckKt checks compatibility between KT Cloud VM spec and OS image

func CheckNcp

func CheckNcp(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool

CheckNcp checks compatibility between NCP VM spec and OS image

func CheckNhn

func CheckNhn(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool

CheckNhn checks compatibility between NHN Cloud VM spec and OS image

func CheckOpenstack

func CheckOpenstack(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool

CheckOpenstack checks compatibility between OpenStack VM spec and OS image

func CheckTencent

func CheckTencent(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool

CheckTencent checks compatibility between Tencent Cloud VM spec and OS image

func FilterNcpVmSpecsByHypervisor

func FilterNcpVmSpecsByHypervisor(vmSpecs []cloudmodel.SpecInfo) []cloudmodel.SpecInfo

FilterNcpVmSpecsByHypervisor filters NCP VM specs to include only KVM hypervisor specs

Types

type Checker

type Checker interface {
	CheckCompatibility(spec cloudmodel.SpecInfo, image cloudmodel.ImageInfo) bool
}

Checker interface defines the contract for CSP-specific compatibility checkers

Jump to

Keyboard shortcuts

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