recommendation

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindBestVmOsImage added in v0.1.1

func FindBestVmOsImage(keywords string, kwDelimiters []string, vmImages []tbmodel.TbImageInfo, imgDelimiters []string) string

FindBestVmOsImage finds the best matching image based on the similarity scores

func IsValidProviderAndRegion added in v0.2.2

func IsValidProviderAndRegion(provider string, region string) (bool, error)

func MBtoGiB added in v0.1.1

func MBtoGiB(mb float64) uint32

Types

type RecommendationStatus added in v0.2.1

type RecommendationStatus string

RecommendationStatus represents the status of a recommendation.

const (
	NothingRecommended   RecommendationStatus = "none"
	PartiallyRecommended RecommendationStatus = "partial"
	FullyRecommended     RecommendationStatus = "ok"
)

type RecommendedInfraInfo added in v0.2.1

type RecommendedInfraInfo struct {
	Status      string                  `json:"status"`
	Description string                  `json:"description"`
	TargetInfra tbmodel.TbMciDynamicReq `json:"targetInfra"`
}

func Recommend

func Recommend(desiredProvider string, desiredRegion string, srcInfra inframodel.OnpremInfra) (RecommendedInfraInfo, error)

Recommend an appropriate multi-cloud infrastructure (MCI) for cloud migration

Jump to

Keyboard shortcuts

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