Documentation
¶
Index ¶
- Constants
- func ClassifyOSMTVStatus(osName string) string
- func ClassifyOSTier(osName string) string
- func StorageProtocolFromDatastoreType(datastoreType string) string
- type ClusterFeatures
- type ClusterUtilization
- type Datastore
- type DiskSizeTierSummary
- type DiskTypeSummary
- type Host
- type HostStorageAdapter
- type HostStorageLun
- type InfraData
- type Inventory
- type InventoryData
- type IssuesBreakdown
- type MigrationIssue
- type Network
- type OSInfo
- type ResourceBreakdown
- type StorageIoConfiguration
- type VMsData
Constants ¶
const ( MTVStatusGreen = "green" MTVStatusBlue = "blue" )
const ( TierCertified = "certified" TierVendorSupported = "vendor_supported" TierCommunitySupported = "community_supported" TierSpecialHandling = "special_handling" )
const ( StorageProtocolBlock = "Block" StorageProtocolFile = "File" StorageProtocolObject = "Object" )
Variables ¶
This section is empty.
Functions ¶
func ClassifyOSMTVStatus ¶ added in v0.32.0
ClassifyOSMTVStatus returns the migration verification status for the given OS name. A blank status means the OS/architecture is not listed. The article lists MTV status only for x86_64, so 32-bit, ARM and s390x guests must not inherit it.
func ClassifyOSTier ¶ added in v0.18.0
ClassifyOSTier returns the support tier for the given OS name. Falls back to TierSpecialHandling for unrecognized OSes.
func StorageProtocolFromDatastoreType ¶ added in v0.27.0
StorageProtocolFromDatastoreType maps a datastore technology to its storage access category. Unknown datastore types intentionally remain unset.
Types ¶
type ClusterFeatures ¶ added in v0.13.4
type ClusterFeatures struct {
DrsEnabled *bool `json:"drsEnabled,omitempty"`
DrsMode *string `json:"drsMode,omitempty"`
HaEnabled *bool `json:"haEnabled,omitempty"`
}
ClusterFeatures contains cluster-level feature information.
type ClusterUtilization ¶ added in v0.13.4
type ClusterUtilization struct {
CpuAvg float64
CpuP95 float64
CpuMax float64
MemAvg float64
MemP95 float64
MemMax float64
Confidence float64
}
ClusterUtilization contains rightsizing utilization metrics for a cluster. Nested in InventoryData; ClusterID/ClusterName omitted as redundant (cluster ID is the map key). Contains only utilization percentages (0-100) needed for rightsizing-based sizing calculations.
type Datastore ¶
type Datastore struct {
DiskId string
BackingDeviceIDs []string
FilesystemType string
FilesystemMajorVersion int32
FreeCapacityGB float64
TotalCapacityGB float64
Type string
StorageProtocol string
VsanSnapshotSupport bool
HostId string
Model string
ProtocolType string
Vendor string
StorageIoConfiguration *StorageIoConfiguration
}
Datastore represents a VMware datastore.
type DiskSizeTierSummary ¶
DiskSizeTierSummary contains VM count and total size for a disk size tier.
type DiskTypeSummary ¶
DiskTypeSummary contains disk usage aggregated by datastore type.
type Host ¶
type Host struct {
ID string
Datacenter string
Cluster string
CpuModel string
SerialNumber string
Vendor string
Model string
CpuCores int
CpuSockets int
MemoryMB int
VMotionSupported *bool
StorageVMotionSupported *bool
StorageAdapters []HostStorageAdapter
StorageLuns []HostStorageLun
}
Host represents a VMware ESXi host.
type HostStorageAdapter ¶ added in v0.32.0
type HostStorageAdapter struct {
Device string `json:"device,omitempty"`
Key string `json:"key,omitempty"`
Type string `json:"type,omitempty"`
Protocol string `json:"protocol,omitempty"`
Model string `json:"model,omitempty"`
Driver string `json:"driver,omitempty"`
NodeWWN string `json:"nodeWwn,omitempty"`
PortWWN string `json:"portWwn,omitempty"`
}
HostStorageAdapter contains the available source facts for one host adapter.
type HostStorageLun ¶ added in v0.32.0
type HostStorageLun struct {
CanonicalName string `json:"canonicalName,omitempty"`
Key string `json:"key,omitempty"`
LunUUID string `json:"lunUuid,omitempty"`
Vendor string `json:"vendor,omitempty"`
Model string `json:"model,omitempty"`
AdapterDevices []string `json:"adapterDevices,omitempty"`
}
HostStorageLun is a host-visible LUN, not an array or a complete multipath record.
type InfraData ¶
type InfraData struct {
Hosts []Host
HostPowerStates map[string]int
Datastores []Datastore
Networks []Network
TotalHosts int
TotalDatacenters int
ClustersPerDatacenter []int
StandaloneHostsDetected bool
CPUOverCommitment *float64
MemoryOverCommitment *float64
}
InfraData contains infrastructure-level data (hosts, datastores, networks).
type Inventory ¶
type Inventory struct {
VCenterID string
VCenter *InventoryData
Clusters map[string]InventoryData
VCenterVersion string
CreatedAt *time.Time
CollectionTime *time.Time
}
Inventory is the domain representation of infrastructure inventory. It contains vCenter-level data and per-cluster inventories.
type InventoryData ¶
type InventoryData struct {
VMs VMsData
Infra InfraData
ClusterFeatures *ClusterFeatures
ClusterUtilization *ClusterUtilization
}
InventoryData contains VM and infrastructure data for a scope (vCenter or cluster).
type IssuesBreakdown ¶ added in v0.18.0
IssuesBreakdown holds the number of VMs affected per issue severity category. A VM with multiple issues of the same category is counted once per category.
type MigrationIssue ¶
MigrationIssue represents a migration concern with its count.
type OSInfo ¶
type OSInfo struct {
Count int
IsSupported bool
SupportTier string
MTVStatus string
UpgradeRecommendation string
}
OSInfo contains OS distribution information.
type ResourceBreakdown ¶
type ResourceBreakdown struct {
Total int
TotalForMigratable int
TotalForMigratableWithWarnings int
TotalForNotMigratable int
}
ResourceBreakdown contains resource totals split by migrability status.
type StorageIoConfiguration ¶ added in v0.19.0
type StorageIoConfiguration struct {
Enabled bool
CongestionThreshold int
CongestionThresholdMode string
PercentOfPeakThroughput int
}
StorageIoConfiguration represents VMware Storage I/O Control settings for a datastore.
type VMsData ¶
type VMsData struct {
Total int
TotalMigratable int
TotalMigratableWithWarnings int
TotalWithRDM int
TotalWithFaultTolerance int
PowerStates map[string]int
OSInfo map[string]OSInfo
CPUCores ResourceBreakdown
RamGB ResourceBreakdown
DiskCount ResourceBreakdown
DiskGB ResourceBreakdown
NicCount ResourceBreakdown
DistributionByCPUTier map[string]int
DistributionByMemoryTier map[string]int
DistributionByNICCount map[string]int
DistributionByComplexity map[string]int
ComplexityDistribution map[string]DiskSizeTierSummary
DiskSizeTiers map[string]DiskSizeTierSummary
DiskComplexityTiers map[string]DiskSizeTierSummary // 4-bucket complexity tiers for estimation engine
DiskTypes map[string]DiskTypeSummary
MigrationWarnings []MigrationIssue
NotMigratableReasons []MigrationIssue
IssuesBreakdown IssuesBreakdown
}
VMsData contains aggregated VM statistics and distribution data.