Documentation ¶
Index ¶
- Variables
- func GetCpuCore(name string) (int, error)
- func GetFacilityIdFromHerf(herf string) string
- func ParseFacility(facility *packngo.Facility) *v1alpha1.Region
- func ParsePlan(plan *packngo.Plan) (*v1alpha1.MachineType, error)
- func RemoveUnitRetFloat64(in string) (float64, error)
- func RemoveUnitRetInt(in string) (int, error)
- type Client
- type PlanList
Constants ¶
This section is empty.
Variables ¶
View Source
var NumOfCore = map[string]int{
"Intel Atom C2550 @ 2.4Ghz": 4,
"Intel E3-1240 v3": 4,
"Intel Xeon E3-1578L v5": 4,
"Intel Xeon E5-2650 v4 @2.2GHz": 24,
"Cavium ThunderX CN8890 @2GHz": 96,
"Intel E5-2640 v3": 16,
"Intel Xeon D-1537 @1.7GHz": 16,
"AMD EPYC 7401P 24-Core Processor @ 2.0GHz": 24,
"Intel Xeon Gold 6126": 2 * 12,
"Intel Scalable Gold 5120 28-Core Processor @ 2.2GHz": 28,
"32-core @ 3.0Ghz": 32,
}
Functions ¶
func GetCpuCore ¶
func GetFacilityIdFromHerf ¶
formate: "/facilities/[id]"
func RemoveUnitRetFloat64 ¶
4GB -> 4 2048MB -> 2048/1024 -> 2
func RemoveUnitRetInt ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.