inventory

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

type Datastore struct {
	DiskId          string
	FreeCapacityGB  float64
	TotalCapacityGB float64
	Type            string
	HostId          string
	Model           string
	ProtocolType    string
	Vendor          string
}

Datastore represents a VMware datastore.

type DiskSizeTierSummary

type DiskSizeTierSummary struct {
	VMCount     int
	TotalSizeTB float64
}

DiskSizeTierSummary contains VM count and total size for a disk size tier.

type DiskTypeSummary

type DiskTypeSummary struct {
	Type        string
	VMCount     int
	TotalSizeTB float64
}

DiskTypeSummary contains disk usage aggregated by datastore type.

type Host

type Host struct {
	ID         string
	Vendor     string
	Model      string
	CpuCores   int
	CpuSockets int
	MemoryMB   int
}

Host represents a VMware ESXi host.

type InfraData

type InfraData struct {
	Hosts                 []Host
	HostPowerStates       map[string]int
	Datastores            []Datastore
	Networks              []Network
	TotalHosts            int
	TotalDatacenters      int
	ClustersPerDatacenter []int
	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
}

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
}

InventoryData contains VM and infrastructure data for a scope (vCenter or cluster).

type MigrationIssue

type MigrationIssue struct {
	ID         string
	Label      string
	Category   string
	Assessment string
	Count      int
}

MigrationIssue represents a migration concern with its count.

type Network

type Network struct {
	Name     string
	Type     string
	Dvswitch string
	VlanId   string
	VmsCount int
}

Network represents a VMware network.

type OSInfo

type OSInfo struct {
	Count                 int
	IsSupported           bool
	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 VMsData

type VMsData struct {
	Total                       int
	TotalMigratable             int
	TotalMigratableWithWarnings int
	TotalWithSharedDisks        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
	DiskSizeTiers               map[string]DiskSizeTierSummary
	DiskTypes                   map[string]DiskTypeSummary
	MigrationWarnings           []MigrationIssue
	NotMigratableReasons        []MigrationIssue
}

VMsData contains aggregated VM statistics and distribution data.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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